Allow compilation of BACnet/IP demos in Cygwin in Windows
This commit is contained in:
@@ -75,19 +75,25 @@
|
||||
|
||||
#define ENUMS
|
||||
#include <sys/socket.h>
|
||||
#ifndef __CYGWIN__
|
||||
#include <net/route.h>
|
||||
#endif
|
||||
#include <net/if.h>
|
||||
#ifndef __CYGWIN__
|
||||
#include <net/if_arp.h>
|
||||
#endif
|
||||
#include <features.h> /* for the glibc version number */
|
||||
#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1
|
||||
#include <netpacket/packet.h>
|
||||
#include <net/ethernet.h> /* the L2 protocols */
|
||||
#else
|
||||
#include <asm/types.h>
|
||||
#ifndef __CYGWIN__
|
||||
#include <linux/if_packet.h>
|
||||
#include <linux/if_arcnet.h>
|
||||
#include <linux/if_ether.h>
|
||||
#endif
|
||||
#endif
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <sys/un.h>
|
||||
|
||||
Reference in New Issue
Block a user