w
This commit is contained in:
1 parent
a3c570fb6b
commit
1d2899f43b
2 files changed
+2
-7
No files matched your search
@@ -11,6 +11,7 @@
|
|||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#include <sys/uio.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
|||||||
+1
-7
@@ -11,8 +11,7 @@
|
|||||||
#include "debug_config.h"
|
#include "debug_config.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
@@ -232,12 +231,7 @@ static FILE* open_logfile(const char *logfile) {
|
|||||||
return stderr;
|
return stderr;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set line buffering (Windows uses _IOLBF via setvbuf)
|
|
||||||
#ifdef _WIN32
|
|
||||||
setvbuf(fp, NULL, _IOLBF, 0);
|
setvbuf(fp, NULL, _IOLBF, 0);
|
||||||
#else
|
|
||||||
setlinebuf(fp);
|
|
||||||
#endif
|
|
||||||
return fp;
|
return fp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user