[xml] Fix SCO OpenServer compiling



Hi all,

Here is a patch that fix compilation errors on SCO OpenServer (yeah I know...). The patch was generated against the trunk.

--
Florent,
Index: testModule.c
===================================================================
--- testModule.c        (revision 3697)
+++ testModule.c        (working copy)
@@ -29,6 +29,15 @@
 #define MODULE_PATH ".libs"
 #endif
 
+/* Used for SCO Openserver*/
+#ifndef PATH_MAX
+#ifdef _POSIX_PATH_MAX
+#define PATH_MAX _POSIX_PATH_MAX
+#else
+#define PATH_MAX 4096
+#endif
+#endif
+
 typedef int (*hello_world_t)(void);
  
 int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]