Browse Source

w

nodeinfo-routing-update
Evgeny 1 week ago
parent
commit
1d2899f43b
  1. 1
      src/tun_freebsd.c
  2. 6
      src/utun.c

1
src/tun_freebsd.c

@ -11,6 +11,7 @@
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <sys/stat.h>
#include <net/if.h>
#include <netinet/in.h>

6
src/utun.c

@ -12,7 +12,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
@ -232,12 +231,7 @@ static FILE* open_logfile(const char *logfile) {
return stderr;
}
// Set line buffering (Windows uses _IOLBF via setvbuf)
#ifdef _WIN32
setvbuf(fp, NULL, _IOLBF, 0);
#else
setlinebuf(fp);
#endif
return fp;
}

Loading…
Cancel
Save