Browse code

db_mysql: fixed build on Solaris

- Added preporcessor defs to avoid adding macro which breaks compile on Solaris

Jason Penton authored on 16/07/2011 08:13:14
Showing 1 changed files
... ...
@@ -30,7 +30,10 @@
30 30
  *  @{
31 31
  */
32 32
 
33
-#define _XOPEN_SOURCE 4     /* bsd */
33
+/* the following macro will break the compile on solaris */
34
+#if !defined (__SVR4) && !defined (__sun)
35
+   #define _XOPEN_SOURCE 4     /* bsd */
36
+#endif
34 37
 #define _XOPEN_SOURCE_EXTENDED 1    /* solaris */
35 38
 #define _SVID_SOURCE 1 /* timegm */
36 39