mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-25 15:41:26 +00:00
Fix windows build
This commit is contained in:
parent
3fadbfb580
commit
fbb5a49cf3
|
@ -464,6 +464,7 @@ int recent_seqno(int ourseqno, int gotseqno)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef WINDOWS32
|
||||||
/* Set FD_CLOEXEC flag on file descriptor.
|
/* Set FD_CLOEXEC flag on file descriptor.
|
||||||
* This stops it from being inherited by system() calls.
|
* This stops it from being inherited by system() calls.
|
||||||
*/
|
*/
|
||||||
|
@ -479,3 +480,5 @@ fd_set_close_on_exec(int fd)
|
||||||
if (fcntl(fd, F_SETFD, flags) == -1)
|
if (fcntl(fd, F_SETFD, flags) == -1)
|
||||||
err(4, "Failed to set fd flags");
|
err(4, "Failed to set fd flags");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -136,6 +136,8 @@ void warnx(const char *fmt, ...);
|
||||||
|
|
||||||
int recent_seqno(int , int);
|
int recent_seqno(int , int);
|
||||||
|
|
||||||
|
#ifndef WINDOWS32
|
||||||
void fd_set_close_on_exec(int fd);
|
void fd_set_close_on_exec(int fd);
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue