Blob Blame Raw
--- pl-5.4.6/packages/xpce/src/ker/proto.h.orig	2005-02-23 14:36:14.105778596 +0000
+++ pl-5.4.6/packages/xpce/src/ker/proto.h	2005-02-23 14:38:54.422339376 +0000
@@ -1,3 +1,5 @@
+#include "../config.h"
+
 #define COMMON(type) type SO_LOCAL
 
 /* /staff/jan/src/pl/packages/xpce/src/ker/alloc.c */
@@ -152,7 +154,9 @@
 COMMON(void)	msleep(int time);
 COMMON(void)	msleep(int time);
 COMMON(void)	msleep(int time);
+#ifndef HAVE_GETDTABLESIZE
 COMMON(int)	getdtablesize(void);
+#endif
 COMMON(int)	pceAssert(int expr, char *text, char *file, int line);
 COMMON(void)	at_pce_exit(atexit_function f, int flags);
 COMMON(void)	run_pce_exit_hooks(int rval);
@@ -305,8 +309,6 @@
 COMMON(status)	debuggingPce(Pce pce, Bool val);
 COMMON(status)	exceptionPcev(Pce pce, Name name, int argc, Any *argv);
 COMMON(status)	exceptionPce(Pce pce, Name kind, ...);
-COMMON(int)	getdtablesize(void);
-COMMON(int)	getdtablesize(void);
 COMMON(Name)	getHostnamePce(Pce pce);
 COMMON(status)	catchErrorSignalsPce(Pce pce, Bool val);
 COMMON(status)	resetPce(Pce pce);