Easy fixes ...
>From bbbe3785e3452784ca69ebf2f0ffe679567a48ab Mon Sep 17 00:00:00 2001
From: Pascal Stumpf <pascal.stu...@cubes.de>
Date: Fri, 10 Aug 2012 14:02:30 +0200
Subject: [PATCH] OpenBSD fixes for DtPrint and csa.
---
cde/include/EUSCompat.h | 2 +-
cde/lib/DtPrint/PrintSetupB.c | 5 +++++
cde/lib/csa/agent.wrapbegin | 2 +-
cde/lib/csa/lutil.c | 1 +
4 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/cde/include/EUSCompat.h b/cde/include/EUSCompat.h
index 31c43b0..3d85398 100644
--- a/cde/include/EUSCompat.h
+++ b/cde/include/EUSCompat.h
@@ -110,7 +110,7 @@ typedef enum {B_FALSE, B_TRUE} boolean_t;
#endif /* HPUX */
-#if defined(linux)
+#if defined(linux) || defined(CSRG_BASED)
typedef enum {B_FALSE, B_TRUE} boolean_t;
#define MAXNAMELEN 256
diff --git a/cde/lib/DtPrint/PrintSetupB.c b/cde/lib/DtPrint/PrintSetupB.c
index 0c1eb86..97cf561 100644
--- a/cde/lib/DtPrint/PrintSetupB.c
+++ b/cde/lib/DtPrint/PrintSetupB.c
@@ -46,7 +46,11 @@
#endif
#include <stdlib.h>
+#if defined(CSRG_BASED)
+#define MAXINT INT_MAX
+#else
#include <values.h>
+#endif
#include <stdio.h>
#include <Xm/XmAll.h>
@@ -60,6 +64,7 @@
#include <Dt/PsubUtilI.h>
#include <Dt/PrintI.h>
+
/*
* ------------------------------------------------------------------------
* Constant Definitions
diff --git a/cde/lib/csa/agent.wrapbegin b/cde/lib/csa/agent.wrapbegin
index b1cdb33..b11af6a 100644
--- a/cde/lib/csa/agent.wrapbegin
+++ b/cde/lib/csa/agent.wrapbegin
@@ -5,7 +5,7 @@
#include <rpc/types.h>
#endif /* HPUX */
-#if defined(linux)
+#if defined(linux) || defined(CSRG_BASED)
# if defined __STDC__
# define REDEFINE_STDC
# undef __STDC__
diff --git a/cde/lib/csa/lutil.c b/cde/lib/csa/lutil.c
index 2794832..1191c86 100644
--- a/cde/lib/csa/lutil.c
+++ b/cde/lib/csa/lutil.c
@@ -29,6 +29,7 @@
* (c) Copyright 1993, 1994 Sun Microsystems, Inc.
*/
+#include <sys/param.h>
#include <EUSCompat.h>
#include <stdio.h>
#include <stdlib.h>
--
1.7.6
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel