Explorar o código

db_mysql: fixed build on Solaris

- Added preporcessor defs to avoid adding macro which breaks compile on Solaris
Jason Penton %!s(int64=14) %!d(string=hai) anos
pai
achega
3298a44890
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      modules/db_mysql/my_cmd.c

+ 4 - 1
modules/db_mysql/my_cmd.c

@@ -30,7 +30,10 @@
  *  @{
  */
 
-#define _XOPEN_SOURCE 4     /* bsd */
+/* the following macro will break the compile on solaris */
+#if !defined (__SVR4) && !defined (__sun)
+   #define _XOPEN_SOURCE 4     /* bsd */
+#endif
 #define _XOPEN_SOURCE_EXTENDED 1    /* solaris */
 #define _SVID_SOURCE 1 /* timegm */