diff options
author | Koushik Dutta <koushd@gmail.com> | 2013-08-14 13:55:09 -0700 |
---|---|---|
committer | Koushik Dutta <koushd@gmail.com> | 2013-08-14 13:55:09 -0700 |
commit | 128f4a25a580449d413085ce95505aeaf6903ca4 (patch) | |
tree | 689e4feb17c600b3751a79252129c3a67b019790 /config.h | |
parent | 591d9768c61fe4f50fb5b4919df07ec37d9db891 (diff) | |
download | android_external_libusbx-staging/cm-12.0-caf.tar.gz android_external_libusbx-staging/cm-12.0-caf.tar.bz2 android_external_libusbx-staging/cm-12.0-caf.zip |
fixes for building windowscm-11.0-XNPH44S-bacon-5fa8c79c0bcm-11.0-XNPH33R-bacon-3628510d76cm-11.0-XNPH30O-bacon-4f280f505acm-11.0-XNPH25R-bacon-d22b777afacm-11.0-XNPH22R-bacon-03d77315eacm-11.0-XNPH05Q-tomato-9828f8e9cccm-11.0-XNPH05Q-bacon-5229c4ef56cm-10.2.1cm-10.2.0cm-10.2-M1staging/cm-12.0-cafstable/cm-11.0-XNG3Cstable/cm-11.0-XNG2Sstable/cm-11.0-XNF9Xstable/cm-11.0-XNF8Ystable/cm-11.0stable/cm-10.2shipping/cm-11.0cm-10.2
Change-Id: I4c26d86e57c6373c23a9908104f11119dfc467da
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 37 |
1 files changed, 20 insertions, 17 deletions
@@ -1,6 +1,16 @@ /* config.h. Generated from config.h.in by configure. */ /* config.h.in. Generated from configure.ac by autoheader. */ +#if defined(__APPLE__) +#define OS_DARWIN +#define THREADS_POSIX +#elif defined(__linux__) +#define OS_LINUX +#define THREADS_POSIX +#else +#define OS_WINDOWS +#endif + /* Default visibility */ #define DEFAULT_VISIBILITY __attribute__((visibility("default"))) @@ -38,7 +48,9 @@ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the <poll.h> header file. */ +#ifndef OS_WINDOWS #define HAVE_POLL_H 1 +#endif /* Define to 1 if you have the <signal.h> header file. */ #define HAVE_SIGNAL_H 1 @@ -56,13 +68,17 @@ #define HAVE_STRING_H 1 /* Define to 1 if the system has the type `struct timespec'. */ +#ifndef OS_WINDOWS #define HAVE_STRUCT_TIMESPEC 1 +#endif /* syslog() function available */ #define HAVE_SYSLOG_FUNC 1 /* Define to 1 if you have the <syslog.h> header file. */ +#ifndef OS_WINDOWS #define HAVE_SYSLOG_H 1 +#endif /* Define to 1 if you have the <sys/socket.h> header file. */ /* #undef HAVE_SYS_SOCKET_H */ @@ -83,26 +99,9 @@ */ #define LT_OBJDIR ".libs/" -/* Define to 1 if your C compiler doesn't accept -c and -o together. */ -/* #undef NO_MINUS_C_MINUS_O */ - -#if defined(__APPLE__) -#define OS_DARWIN -#define THREADS_POSIX -#elif defined(__linux__) -#define OS_LINUX -#define THREADS_POSIX -#endif - -/* Linux backend */ -/* #undef OS_LINUX */ - /* OpenBSD/NetBSD backend */ /* #undef OS_OPENBSD */ -/* Windows backend */ -/* #undef OS_WINDOWS */ - /* Name of package */ #define PACKAGE "libusbx" @@ -125,7 +124,11 @@ #define PACKAGE_VERSION "1.0.16" /* type of second poll() argument */ +#ifndef OS_WINDOWS #define POLL_NFDS_TYPE nfds_t +#else +#define POLL_NFDS_TYPE unsigned int +#endif /* Define to 1 if you have the ANSI C header files. */ #define STDC_HEADERS 1 |