Change define __OSX__ to more appropriate __Darwin__ (in light of Darwin being open sourced, and able to run on x86, OSX isn't really suitable)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5769 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2-netsec
Josh Roberson 21 years ago
parent 70b3b8730e
commit 43866b0ef2

@ -244,7 +244,7 @@ LIBS+=-lresolv #-lnjamd
endif endif
ifeq (${OSARCH},Darwin) ifeq (${OSARCH},Darwin)
LIBS+=-lresolv LIBS+=-lresolv
CFLAGS+=-D__OSX__ CFLAGS+=-D__Darwin__
endif endif
ifeq (${OSARCH},FreeBSD) ifeq (${OSARCH},FreeBSD)
LIBS+=-lcrypto LIBS+=-lcrypto

@ -19,7 +19,7 @@
#include <time.h> #include <time.h>
#define AST_INCLUDE_GLOB 1 #define AST_INCLUDE_GLOB 1
#ifdef AST_INCLUDE_GLOB #ifdef AST_INCLUDE_GLOB
#ifdef __OSX__ #ifdef __Darwin__
#define GLOB_ABORTED GLOB_ABEND #define GLOB_ABORTED GLOB_ABEND
#endif #endif
# include <glob.h> # include <glob.h>

@ -38,7 +38,7 @@
#include <sys/socket.h> #include <sys/socket.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(SOLARIS) || defined(__OSX__) #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(SOLARIS) || defined(__Darwin__)
#include <sys/types.h> #include <sys/types.h>
#include <netinet/in_systm.h> #include <netinet/in_systm.h>
#endif #endif
@ -46,7 +46,7 @@
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <net/if.h> #include <net/if.h>
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__OSX__) #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__Darwin__)
#include <net/if_dl.h> #include <net/if_dl.h>
#include <ifaddrs.h> #include <ifaddrs.h>
#endif #endif

Loading…
Cancel
Save