Browse Source

Dont include unneeded headers

pull/1137/head
Hamish Coleman 1 year ago
parent
commit
e79616dc8b
  1. 1
      include/n2n.h
  2. 6
      include/n2n_wire.h

1
include/n2n.h

@ -61,7 +61,6 @@
#include <lmapibuf.h> /* for privilege check in tools/n2n-route */ #include <lmapibuf.h> /* for privilege check in tools/n2n-route */
#include <sys/stat.h> #include <sys/stat.h>
#include <windows.h> /* for privilege check in tools/n2n-route */ #include <windows.h> /* for privilege check in tools/n2n-route */
#include "wintap.h"
#define SHUT_RDWR SD_BOTH /* for tcp */ #define SHUT_RDWR SD_BOTH /* for tcp */
#endif /* #ifdef _WIN32 */ #endif /* #ifdef _WIN32 */

6
include/n2n_wire.h

@ -25,12 +25,10 @@
#include <stdint.h> #include <stdint.h>
#endif #endif
#ifdef _WIN32 #ifndef _WIN32
#include "n2n_win32.h"
#else /* #ifdef _WIN32 */
#include <netinet/in.h> #include <netinet/in.h>
#include <sys/socket.h> /* AF_INET and AF_INET6 */ #include <sys/socket.h> /* AF_INET and AF_INET6 */
#endif /* #ifdef _WIN32 */ #endif /* #ifndef _WIN32 */
#include "sn_selection.h" #include "sn_selection.h"

Loading…
Cancel
Save