]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 4047: Support Android builds
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 21 Apr 2014 08:23:37 +0000 (01:23 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 21 Apr 2014 08:23:37 +0000 (01:23 -0700)
compat/compat.h
compat/os/android.h [new file with mode: 0644]
compat/psignal.c

index ee2d231af73f3f8660a23da90cc8b9c624845d49..7845e2a259cb5d356984e3f0bbedac4320e8bd82 100644 (file)
@@ -56,6 +56,7 @@
 /*****************************************************/
 
 #include "compat/os/aix.h"
+#include "compat/os/android.h"
 #include "compat/os/dragonfly.h"
 #include "compat/os/freebsd.h"
 #include "compat/os/hpux.h"
diff --git a/compat/os/android.h b/compat/os/android.h
new file mode 100644 (file)
index 0000000..8dab2fe
--- /dev/null
@@ -0,0 +1,13 @@
+#ifndef SQUID_OS_ANDROID_H
+#define SQUID_OS_ANDROID_H
+
+#if defined(__ANDROID__)
+/****************************************************************************
+ *--------------------------------------------------------------------------*
+ * DO *NOT* MAKE ANY CHANGES below here unless you know what you're doing...*
+ *--------------------------------------------------------------------------*
+ ****************************************************************************/
+#define _SQUID_ANDROID_ 1
+
+#endif /* _SQUID_ANDROID_ */
+#endif /* SQUID_OS_ANDROID_H */
index 6d06b710459bbac5f2b6f1bacbd6eeff05ae1194..9146407e9806ec0276551261cd24300506a8ba1e 100644 (file)
@@ -5,7 +5,7 @@
 #include "squid.h"
 #include "psignal.h"
 
-#if _SQUID_AIX_ || _SQUID_MINGW_
+#if _SQUID_AIX_ || _SQUID_ANDROID_ || _SQUID_MINGW_
 extern const char* const sys_siglist[];
 #define _sys_nsig 64
 #define _sys_siglist sys_siglist