OpenBSD fixes for DtPrint and csa.
authorPascal Stumpf <Pascal.Stumpf@cubes.de>
Fri, 10 Aug 2012 12:02:30 +0000 (14:02 +0200)
committerJon Trulson <jon@radscan.com>
Fri, 10 Aug 2012 12:18:28 +0000 (06:18 -0600)
cde/include/EUSCompat.h
cde/lib/DtPrint/PrintSetupB.c
cde/lib/csa/agent.wrapbegin
cde/lib/csa/lutil.c

index 31c43b00e44255555598ab4fcb258facd69d6beb..3d85398aac43f4a832d123c11461cb25c6553439 100644 (file)
@@ -110,7 +110,7 @@ typedef enum {B_FALSE, B_TRUE} boolean_t;
 
 #endif /* HPUX */
 
 
 #endif /* HPUX */
 
-#if defined(linux)
+#if defined(linux) || defined(CSRG_BASED)
 typedef enum {B_FALSE, B_TRUE} boolean_t;
 #define MAXNAMELEN             256
 
 typedef enum {B_FALSE, B_TRUE} boolean_t;
 #define MAXNAMELEN             256
 
index 0c1eb86a50adb332283551b9901a758d1fed5d84..97cf56187687d2d4bba89b4634e2b4bda589e8c1 100644 (file)
 #endif
 
 #include <stdlib.h>
 #endif
 
 #include <stdlib.h>
+#if defined(CSRG_BASED)
+#define MAXINT INT_MAX
+#else
 #include <values.h>
 #include <values.h>
+#endif
 #include <stdio.h>
 
 #include <Xm/XmAll.h>
 #include <stdio.h>
 
 #include <Xm/XmAll.h>
@@ -60,6 +64,7 @@
 #include <Dt/PsubUtilI.h>
 #include <Dt/PrintI.h>
 
 #include <Dt/PsubUtilI.h>
 #include <Dt/PrintI.h>
 
+
 /*
  * ------------------------------------------------------------------------
  * Constant Definitions
 /*
  * ------------------------------------------------------------------------
  * Constant Definitions
index b1cdb339f0178f6140bb4d0f1519f470dd11bdb1..b11af6a217430309f3038ff65c0da3fd2ac0160b 100644 (file)
@@ -5,7 +5,7 @@
 #include <rpc/types.h>
 #endif /* HPUX */
 
 #include <rpc/types.h>
 #endif /* HPUX */
 
-#if defined(linux)
+#if defined(linux) || defined(CSRG_BASED)
 # if defined __STDC__
 #  define REDEFINE_STDC
 #  undef __STDC__
 # if defined __STDC__
 #  define REDEFINE_STDC
 #  undef __STDC__
index 2794832315d5c7586e52ba5673e0a2ef5eb7a420..1191c8617c8d119c782d8828feebd542f25854b6 100644 (file)
@@ -29,6 +29,7 @@
  *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  */
 
  *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  */
 
+#include <sys/param.h>
 #include <EUSCompat.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <EUSCompat.h>
 #include <stdio.h>
 #include <stdlib.h>