This one adds some missing includes of stdint.h.
Now CDE builds again on OpenBSD, also on older versions.
--
Ulrich Wilkens
Email: m...@uwilkens.de
>From 48d7993c4e7b95ecd0b8548eada34d204585c858 Mon Sep 17 00:00:00 2001
From: Ulrich Wilkens <m...@uwilkens.de>
Date: Sat, 9 May 2015 00:48:08 +0200
Subject: [PATCH] Fix broken build on OpenBSD
---
cde/lib/DtSvc/DtUtil1/ActionDb.c | 1 +
cde/lib/DtSvc/DtUtil1/DtHash.c | 1 +
cde/lib/DtSvc/DtUtil1/Dts.c | 1 +
cde/lib/DtSvc/DtUtil1/MMDb.c | 1 +
cde/programs/dtcalc/help.c | 1 +
cde/programs/dtcalc/motif.c | 1 +
cde/programs/dtcm/dtcm/MonthPanel.c | 1 +
cde/programs/dtcm/dtcm/calendarA.c | 1 +
cde/programs/dtcm/dtcm/misc.c | 1 +
cde/programs/dtcm/dtcm/monthglance.c | 1 +
cde/programs/dtcm/dtcm/weekglance.c | 1 +
cde/programs/dtcm/libDtCmP/util.c | 1 +
cde/programs/dtdocbook/tcl/tclInt.h | 1 +
cde/programs/dtfile/FileMgr.c | 1 +
cde/programs/dtfile/FileOp.c | 1 +
cde/programs/dtfile/Trash.c | 1 +
cde/programs/dticon/main.c | 1 +
cde/programs/dtmail/dtmail/DmxPrintOptions.C | 1 +
cde/programs/dtmail/dtmail/RoamCmds.C | 1 +
cde/programs/dtpad/dtpad.h | 1 +
cde/programs/dtstyle/Main.h | 1 +
cde/programs/dtwm/Callback.c | 1 +
cde/programs/dtwm/DataBaseLoad.c | 1 +
cde/programs/dtwm/Print.c | 1 +
cde/programs/dtwm/UI.c | 1 +
cde/programs/dtwm/WmFP.c | 1 +
26 files changed, 26 insertions(+)
diff --git a/cde/lib/DtSvc/DtUtil1/ActionDb.c b/cde/lib/DtSvc/DtUtil1/ActionDb.c
index df3b008..37078fe 100644
--- a/cde/lib/DtSvc/DtUtil1/ActionDb.c
+++ b/cde/lib/DtSvc/DtUtil1/ActionDb.c
@@ -43,6 +43,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <ctype.h>
+#include <stdint.h>
#include <string.h>
#include <X11/Intrinsic.h>
diff --git a/cde/lib/DtSvc/DtUtil1/DtHash.c b/cde/lib/DtSvc/DtUtil1/DtHash.c
index 7d9c6f9..75d9b52 100644
--- a/cde/lib/DtSvc/DtUtil1/DtHash.c
+++ b/cde/lib/DtSvc/DtUtil1/DtHash.c
@@ -94,6 +94,7 @@ Author: Bart Smaalders 1/89
#include "DtHash.h"
#include <stdlib.h>
#include <string.h>
+#include <stdint.h>
#include <unistd.h>
static int hash_string(const unsigned char * s, int modulo);
diff --git a/cde/lib/DtSvc/DtUtil1/Dts.c b/cde/lib/DtSvc/DtUtil1/Dts.c
index afa8b9e..4bd1bbe 100644
--- a/cde/lib/DtSvc/DtUtil1/Dts.c
+++ b/cde/lib/DtSvc/DtUtil1/Dts.c
@@ -48,6 +48,7 @@
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
+#include <stdint.h>
#include <ctype.h>
#include <sys/mman.h>
#include <stdio.h>
diff --git a/cde/lib/DtSvc/DtUtil1/MMDb.c b/cde/lib/DtSvc/DtUtil1/MMDb.c
index 3a2483c..2bb058f 100644
--- a/cde/lib/DtSvc/DtUtil1/MMDb.c
+++ b/cde/lib/DtSvc/DtUtil1/MMDb.c
@@ -37,6 +37,7 @@
#include <ctype.h>
#include <string.h>
+#include <stdint.h>
#ifdef NLS16
#include <limits.h>
diff --git a/cde/programs/dtcalc/help.c b/cde/programs/dtcalc/help.c
index 09e7ea5..b7bcbc8 100644
--- a/cde/programs/dtcalc/help.c
+++ b/cde/programs/dtcalc/help.c
@@ -40,6 +40,7 @@
#include <Dt/Wsm.h>
#include <Dt/HelpDialog.h>
+#include <stdint.h>
#include "calctool.h"
#include "motif.h"
diff --git a/cde/programs/dtcalc/motif.c b/cde/programs/dtcalc/motif.c
index 9088858..7bcdf34 100644
--- a/cde/programs/dtcalc/motif.c
+++ b/cde/programs/dtcalc/motif.c
@@ -36,6 +36,7 @@
*/
#include <stdio.h>
+#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
diff --git a/cde/programs/dtcm/dtcm/MonthPanel.c b/cde/programs/dtcm/dtcm/MonthPanel.c
index 8290e19..685addb 100644
--- a/cde/programs/dtcm/dtcm/MonthPanel.c
+++ b/cde/programs/dtcm/dtcm/MonthPanel.c
@@ -59,6 +59,7 @@
*/
#include <EUSCompat.h>
#include <stdio.h>
+#include <stdint.h>
#include <Xm/ManagerP.h>
#include <Xm/PushBG.h>
#include <Xm/SeparatoG.h>
diff --git a/cde/programs/dtcm/dtcm/calendarA.c b/cde/programs/dtcm/dtcm/calendarA.c
index 300d5b5..9ad8c99 100644
--- a/cde/programs/dtcm/dtcm/calendarA.c
+++ b/cde/programs/dtcm/dtcm/calendarA.c
@@ -54,6 +54,7 @@ static char sccsid[] = "@(#)calendarA.c 1.196 95/04/12 Copyr 1991 Sun Microsyst
#include <EUSCompat.h>
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#include <sys/stat.h>
#include <sys/param.h> /* MAXPATHLEN defined here */
#ifdef SVR4
diff --git a/cde/programs/dtcm/dtcm/misc.c b/cde/programs/dtcm/dtcm/misc.c
index 2633846..45502b3 100644
--- a/cde/programs/dtcm/dtcm/misc.c
+++ b/cde/programs/dtcm/dtcm/misc.c
@@ -31,6 +31,7 @@
#include <EUSCompat.h>
#include <stdarg.h>
#include <stdlib.h>
+#include <stdint.h>
#include <unistd.h>
#include <stdio.h>
#include <ctype.h>
diff --git a/cde/programs/dtcm/dtcm/monthglance.c b/cde/programs/dtcm/dtcm/monthglance.c
index 906c41d..adafe7c 100644
--- a/cde/programs/dtcm/dtcm/monthglance.c
+++ b/cde/programs/dtcm/dtcm/monthglance.c
@@ -54,6 +54,7 @@ static char sccsid[] = "@(#)monthglance.c 1.82 95/07/27 Copyr 1994 Sun Microsys
#include <EUSCompat.h>
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/param.h> /* MAXPATHLEN defined here */
diff --git a/cde/programs/dtcm/dtcm/weekglance.c b/cde/programs/dtcm/dtcm/weekglance.c
index 9f3734a..d65ad8d 100644
--- a/cde/programs/dtcm/dtcm/weekglance.c
+++ b/cde/programs/dtcm/dtcm/weekglance.c
@@ -31,6 +31,7 @@
#include <EUSCompat.h>
#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/param.h> /* MAXPATHLEN defined here */
diff --git a/cde/programs/dtcm/libDtCmP/util.c b/cde/programs/dtcm/libDtCmP/util.c
index 94f46bc..b089183 100644
--- a/cde/programs/dtcm/libDtCmP/util.c
+++ b/cde/programs/dtcm/libDtCmP/util.c
@@ -54,6 +54,7 @@
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
+#include <stdint.h>
#include <unistd.h>
#include <pwd.h>
#include <netdb.h>
diff --git a/cde/programs/dtdocbook/tcl/tclInt.h b/cde/programs/dtdocbook/tcl/tclInt.h
index 7e10bc9..e446ac0 100644
--- a/cde/programs/dtdocbook/tcl/tclInt.h
+++ b/cde/programs/dtdocbook/tcl/tclInt.h
@@ -49,6 +49,7 @@
*/
#include <stdio.h>
+#include <stdint.h>
#include <sys/types.h> /* for pid_t */
diff --git a/cde/programs/dtfile/FileMgr.c b/cde/programs/dtfile/FileMgr.c
index 84ab324..8f3be73 100644
--- a/cde/programs/dtfile/FileMgr.c
+++ b/cde/programs/dtfile/FileMgr.c
@@ -105,6 +105,7 @@
#include <sys/types.h>
#include <pwd.h>
#include <string.h>
+#include <stdint.h>
#include <sys/stat.h>
#include <ctype.h>
diff --git a/cde/programs/dtfile/FileOp.c b/cde/programs/dtfile/FileOp.c
index 6f7f932..297edc2 100644
--- a/cde/programs/dtfile/FileOp.c
+++ b/cde/programs/dtfile/FileOp.c
@@ -71,6 +71,7 @@
************************************<+>*************************************/
#include <string.h>
+#include <stdint.h>
#include <errno.h>
#include <sys/time.h>
#include <sys/types.h>
diff --git a/cde/programs/dtfile/Trash.c b/cde/programs/dtfile/Trash.c
index b49c66b..d9c96e5 100644
--- a/cde/programs/dtfile/Trash.c
+++ b/cde/programs/dtfile/Trash.c
@@ -101,6 +101,7 @@
#include <dirent.h>
#include <unistd.h>
#include <string.h>
+#include <stdint.h>
#if defined(CSRG_BASED)
#include <sys/param.h>
#include <sys/mount.h>
diff --git a/cde/programs/dticon/main.c b/cde/programs/dticon/main.c
index 3d45888..f0227c1 100644
--- a/cde/programs/dticon/main.c
+++ b/cde/programs/dticon/main.c
@@ -34,6 +34,7 @@
/* at the appropriate places. */
/*-----------------------------------------------------------*/
#include <stdio.h>
+#include <stdint.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
diff --git a/cde/programs/dtmail/dtmail/DmxPrintOptions.C b/cde/programs/dtmail/dtmail/DmxPrintOptions.C
index 3efaf32..c7a4736 100644
--- a/cde/programs/dtmail/dtmail/DmxPrintOptions.C
+++ b/cde/programs/dtmail/dtmail/DmxPrintOptions.C
@@ -70,6 +70,7 @@
#include <stdio.h>
+#include <stdint.h>
#include <X11/Intrinsic.h>
#include <Xm/Xm.h>
#include <Xm/DialogS.h>
diff --git a/cde/programs/dtmail/dtmail/RoamCmds.C b/cde/programs/dtmail/dtmail/RoamCmds.C
index 67b6e07..da48bca 100644
--- a/cde/programs/dtmail/dtmail/RoamCmds.C
+++ b/cde/programs/dtmail/dtmail/RoamCmds.C
@@ -76,6 +76,7 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
+#include <stdint.h>
#include <pwd.h>
#include <X11/Intrinsic.h>
#include <Xm/Text.h>
diff --git a/cde/programs/dtpad/dtpad.h b/cde/programs/dtpad/dtpad.h
index 71e971e..81a8e2d 100644
--- a/cde/programs/dtpad/dtpad.h
+++ b/cde/programs/dtpad/dtpad.h
@@ -56,6 +56,7 @@
#define DTPAD_H
#include <stdio.h>
+#include <stdint.h>
#include <fcntl.h>
#include <errno.h>
#include <limits.h>
diff --git a/cde/programs/dtstyle/Main.h b/cde/programs/dtstyle/Main.h
index 23e2719..d802fb8 100644
--- a/cde/programs/dtstyle/Main.h
+++ b/cde/programs/dtstyle/Main.h
@@ -50,6 +50,7 @@
* #include statements
*/
+#include <stdint.h>
#include <Xm/Xm.h>
#include <Xm/XmP.h>
#include "Font.h"
diff --git a/cde/programs/dtwm/Callback.c b/cde/programs/dtwm/Callback.c
index b3fb3ea..848e4d6 100644
--- a/cde/programs/dtwm/Callback.c
+++ b/cde/programs/dtwm/Callback.c
@@ -37,6 +37,7 @@
*
****************************************************************************/
+#include <stdint.h>
#include <sys/param.h>
#include <sys/stat.h>
diff --git a/cde/programs/dtwm/DataBaseLoad.c b/cde/programs/dtwm/DataBaseLoad.c
index b5986dd..ec8870f 100644
--- a/cde/programs/dtwm/DataBaseLoad.c
+++ b/cde/programs/dtwm/DataBaseLoad.c
@@ -57,6 +57,7 @@
#include <pwd.h>
#include <fcntl.h>
+#include <stdint.h>
#include <sys/stat.h>
diff --git a/cde/programs/dtwm/Print.c b/cde/programs/dtwm/Print.c
index 40734e6..b08009b 100644
--- a/cde/programs/dtwm/Print.c
+++ b/cde/programs/dtwm/Print.c
@@ -45,6 +45,7 @@
#include <Dt/Dt.h>
#include "DataBaseLoad.h"
#include "Parse.h"
+#include <stdint.h>
#ifdef __STDC__
const char *szWM_TOOL_CLASS = DtWM_TOOL_CLASS;
diff --git a/cde/programs/dtwm/UI.c b/cde/programs/dtwm/UI.c
index 3a9c8fa..ee317c8 100644
--- a/cde/programs/dtwm/UI.c
+++ b/cde/programs/dtwm/UI.c
@@ -65,6 +65,7 @@
#include <X11/keysymdef.h>
#include <langinfo.h>
+#include <stdint.h>
#define MWM_NEED_TIME16
#include "WmBitmap.h"
diff --git a/cde/programs/dtwm/WmFP.c b/cde/programs/dtwm/WmFP.c
index 1410d2f..3e6a828 100644
--- a/cde/programs/dtwm/WmFP.c
+++ b/cde/programs/dtwm/WmFP.c
@@ -71,6 +71,7 @@
#include <pwd.h>
#include <fcntl.h>
+#include <stdint.h>
#include <sys/stat.h>
--
1.7.11.5
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel