12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- #ifndef BOINC_UNIX_UTIL_H
- #define BOINC_UNIX_UTIL_H
- #ifndef _WIN32
- #include "config.h"
- #ifndef HAVE_SETENV
- extern "C" int setenv(const char *name, const char *value, int overwrite);
- #endif
- #ifndef HAVE_DAEMON
- extern "C" int daemon(int nochdir, int noclose);
- #endif
- #ifndef HAVE_ETHER_NTOA
- #if HAVE_SYS_TYPES_H
- #include <sys/types.h>
- #endif
- #if HAVE_SYS_SOCKET_H
- #include <sys/socket.h>
- #endif
- #if HAVE_NETINET_IN_H
- #include <netinet/in.h>
- #endif
- #if HAVE_ARPA_INET_H
- #include <arpa/inet.h>
- #endif
- #if HAVE_NET_IF_H
- #include <net/if.h>
- #endif
- #if HAVE_NETINET_IF_ETHER_H
- #include <netinet/if_ether.h>
- #endif
- #if HAVE_NETINET_ETHER_H
- #include <netinet/ether.h>
- #endif
- #ifndef HAVE_STRUCT_ETHER_ADDR
- struct ether_addr {
- unsigned char ether_addr_octet[6];
- };
- #endif
- extern "C" char *ether_ntoa(const struct ether_addr *addr);
- #endif
- #endif
- #endif
|