Fix for 95128 - OS/2 build issue
authorjpierre%netscape.com
Thu, 22 Nov 2001 00:18:08 +0000
changeset 2365 5dca0bdef1589227036f44dc07655f6eb6a27e72
parent 2364 a714f6a7884f6570f466e2c10051c5e443ca7428
child 2366 246c740603c97a5b7067174144f6c9b41f9511ad
push idunknown
push userunknown
push dateunknown
bugs95128
Fix for 95128 - OS/2 build issue
dbm/include/mcom_db.h
dbm/src/ndbm.c
--- a/dbm/include/mcom_db.h
+++ b/dbm/include/mcom_db.h
@@ -215,18 +215,16 @@
 #endif
 
 #if defined(_WINDOWS) || defined(XP_OS2)
 #include <stdio.h>
 #include <io.h>
 
 #ifndef XP_OS2 
 #define MAXPATHLEN 	1024               
-#else
-#include <dirent.h>
 #endif
 
 #define	EFTYPE		EINVAL		/* POSIX 1003.1 format errno. */
 
 #ifndef	STDERR_FILENO
 #define	STDIN_FILENO	0		/* ANSI C #defines */
 #define	STDOUT_FILENO	1
 #define	STDERR_FILENO	2
--- a/dbm/src/ndbm.c
+++ b/dbm/src/ndbm.c
@@ -47,16 +47,20 @@ static char sccsid[] = "@(#)ndbm.c	8.4 (
 #if !defined(_WIN32) && !defined(_WINDOWS) && !defined(XP_OS2_VACPP)
 #include <sys/param.h>
 #endif
 
 #if defined(__linux)
 #include <linux/limits.h>
 #endif
 
+#ifdef __OS2__
+#include "dirent.h"
+#endif
+
 #include <stdio.h>
 #include <string.h>
 
 #include "ndbm.h"
 #include "hash.h"
 
 /*
  * Returns: