Ver código fonte

Fix to include system header files for using functions

OBATA Akio 2 anos atrás
pai
commit
16fe76ed65

+ 1 - 0
cde/doc/util/dbtoman/instant/main.c

@@ -97,6 +97,7 @@
 #include <sys/stat.h>
 #include <sys/file.h>
 #include <time.h>
+#include <unistd.h>
 
 #define STORAGE
 #include "general.h"

+ 1 - 0
cde/include/Dt/DtNlUtils.h

@@ -41,6 +41,7 @@
 #include <langinfo.h>
 #include <Dt/MsgCatP.h>
 #endif
+#include <ctype.h>
 
 #include <X11/Intrinsic.h>
 

+ 1 - 0
cde/lib/DtSearch/oekwic.c

@@ -59,6 +59,7 @@
  */
 #include "SearchE.h"
 #include <ctype.h>
+#include <time.h>
 
 /******#define DEBUG_KWIC*********/
 /********#define DEBUG_FINDSTR_ITER***********/

+ 1 - 0
cde/lib/DtSvc/DtUtil1/WmGWsInfo.c

@@ -43,6 +43,7 @@
  ****************************************************************************
  ************************************<+>*************************************/
 #include <stdio.h>
+#include <stdlib.h>
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>
 #include <Dt/Wsm.h> 

+ 1 - 0
cde/lib/DtSvc/DtUtil1/WmWsCallB.c

@@ -38,6 +38,7 @@
  **
  ****************************************************************************
  ************************************<+>*************************************/
+#include <stdlib.h>
 #include <Tt/tttk.h>
 #include <Dt/Service.h>
 #include <Dt/Wsm.h> 

+ 0 - 3
cde/lib/DtTerm/TermPrim/TermPrimSelect.c

@@ -46,11 +46,8 @@
 #include "TermPrimBufferP.h"
 #include <Xm/DropSMgr.h>
 #include <Xm/DropTrans.h>
-
-#if defined(OPENBSD_ARCHITECTURE)
 #include <ctype.h>
 #include <wctype.h>
-#endif
 
 /* This is for Sun's two button mouse */
 

+ 1 - 1
cde/lib/DtTerm/TermPrim/TermPrimSetPty.c

@@ -65,7 +65,7 @@
 #include <sys/stat.h>
 #endif	/* USE_TIOCCONS */
 
-#if defined(LINUX_ARCHITECTURE) || defined(OPENBSD_ARCHITECTURE)
+#if defined(LINUX_ARCHITECTURE) || defined(CSRG_BASED)
 #include <sys/ioctl.h>
 #endif /* LINUX_ARCHITECTURE */
 

+ 1 - 0
cde/programs/dtcm/server/svcmain.c

@@ -38,6 +38,7 @@
 #include <string.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <signal.h>
 #include <time.h>
 #include <sys/time.h>
 #include <sys/resource.h>

+ 1 - 0
cde/programs/dtdspmsg/dtdspmsg.c

@@ -58,6 +58,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <locale.h>
+#include <ctype.h>
 #include <Dt/MsgCatP.h>
 #include "msgfac_msg.h"
 

+ 1 - 0
cde/programs/dticon/event.c

@@ -56,6 +56,7 @@
  **
  ******************************************************************************/
 #include <stdio.h>
+#include <stdlib.h>
 
 #include <Xm/Xm.h>
 #include "externals.h"

+ 1 - 0
cde/programs/dticon/fileIO.c

@@ -61,6 +61,7 @@
 #include <Xm/FileSB.h>
 #include <stdio.h>
 #include <string.h>
+#include <unistd.h>
 #include "externals.h"
 #include "main.h"
 

+ 2 - 0
cde/programs/dticon/process.c

@@ -82,8 +82,10 @@
 #include <Xm/Xm.h>
 #include <Xm/XmP.h>
 #include <Xm/TextF.h>
+#include <stdlib.h>
 #include "externals.h"
 #include <string.h>
+#include <unistd.h>
 
 #include <Xm/DragC.h>
 #include <Dt/Dnd.h>

+ 1 - 0
cde/programs/dtlogin/chooser.c

@@ -107,6 +107,7 @@ in this Software without prior written authorization from the X Consortium.
 #include    <sys/socket.h>
 #include    <netinet/in.h>
 #include    <sys/ioctl.h>
+#include    <arpa/inet.h>
 
 /*
  * From Xm/XmStringI.h

+ 1 - 0
cde/programs/dtlogin/dm.c

@@ -59,6 +59,7 @@
 #else
 # include	<utmp.h>
 #endif
+# include	<signal.h>
 # include	<time.h>
 # include	<utime.h>
 # include	<pwd.h>

+ 1 - 0
cde/programs/dtlogin/session.c

@@ -75,6 +75,7 @@
 #include <pwd.h>
 #include <dirent.h>
 #include <limits.h>
+#include <ctype.h>
 
 #ifdef SIA
 #include <sia.h>

+ 1 - 1
cde/programs/dtlogin/util.c

@@ -60,7 +60,7 @@
 #include    <dirent.h>
 #include    <Dt/MsgCatP.h>
 
-# include   <sys/signal.h>
+#include   <signal.h>
 
 # ifndef NULL
 #  define NULL 0

+ 1 - 0
cde/programs/dtlogin/vgutil.c

@@ -60,6 +60,7 @@
 #include <sys/signal.h>
 #include <stdarg.h>
 #define Va_start(a,b) va_start(a,b)
+#include <unistd.h>
 
 #include <X11/Xlibint.h>
 #include <Xm/Xm.h>

+ 1 - 0
cde/programs/dtprintinfo/libUI/MotifUI/Debug.c

@@ -23,6 +23,7 @@
 /* $TOG: Debug.c /main/5 1998/04/06 13:32:19 mgreess $ */
 #include <stdlib.h>
 #include <stdio.h>
+#include <unistd.h>
 #include <signal.h>
 #include <errno.h>
 #include <X11/Intrinsic.h>

+ 1 - 0
cde/programs/dtsr/dtsrcreate.c

@@ -92,6 +92,7 @@
 #include <ctype.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <stdlib.h>
 #include <locale.h>
 #include "vista.h"
 

+ 1 - 0
cde/programs/dtstyle/ColorFile.c

@@ -44,6 +44,7 @@
 #include <stdio.h>
 #include <fcntl.h>
 #include <errno.h>
+#include <fnmatch.h>
 
 #include <X11/Xlib.h>
 

+ 1 - 0
cde/programs/dtstyle/I18nUtil.h

@@ -51,6 +51,7 @@
 #define _i18nUtil_h
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <X11/Xlib.h>
 #include <X11/Intrinsic.h>

+ 1 - 0
cde/programs/dtstyle/Main.c

@@ -50,6 +50,7 @@
 /*+++++++++++++++++++++++++++++++++++++++*/
 
 #include "signal.h"
+#include <sys/wait.h>
 #ifdef TIME
 # include <time.h>
 #endif

+ 1 - 0
cde/programs/dtstyle/Screen.c

@@ -58,6 +58,7 @@
 #include <stdio.h>
 #include <signal.h>
 #include <errno.h>
+#include <ctype.h>
 
 #include <X11/Intrinsic.h>
 #include <X11/Xutil.h>

+ 2 - 0
cde/programs/dtwm/WmEwmh.c

@@ -23,6 +23,8 @@
  * Floor, Boston, MA 02110-1301 USA
  */
 
+#include <stdlib.h>
+
 /*
  * Included Files:
  */