1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-12 19:22:41 +00:00

Fix up a few more implicit-function-declaration warnings on the BSDs

This commit is contained in:
Jon Trulson 2021-12-13 16:15:54 -07:00
parent 5f02c65da0
commit b55897489f
4 changed files with 10 additions and 2 deletions

View file

@ -52,8 +52,12 @@ extern "C" {
** System V R4 based systems define the stuff we need in
** sys/types.h. Include that and then we are done.
*/
#if defined(HPUX) || defined(__linux__) || defined(SunOS)
#include <sys/types.h>
#if defined(HPUX) || defined(__linux__) || defined(SunOS) || defined(CSRG_BASED)
# include <sys/types.h>
#endif
#if defined(CSRG_BASED) || defined(__linux__)
# include <sys/socket.h>
#endif
#if defined(sun) && defined(_XOPEN_SOURCE)
@ -104,6 +108,7 @@ typedef enum {B_FALSE, B_TRUE} boolean_t;
#endif /* HPUX */
#if defined(__linux__) || defined(CSRG_BASED)
#include <string.h> /* memset for libcsa and others */
typedef enum {B_FALSE, B_TRUE} boolean_t;
#define MAXNAMELEN 256
#endif

View file

@ -49,6 +49,7 @@ $COPYRIGHT$:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include <sys/stat.h> /* for stat() */
#if defined(sun)

View file

@ -47,6 +47,7 @@
*/
# include <sys/types.h>
# include <sys/socket.h>
# include <sys/signal.h>
# include <setjmp.h>
# include <errno.h>

View file

@ -60,6 +60,7 @@
#include "TermPrimRenderP.h"
#include "TermPrimLineDrawP.h"
#include "TermPrimLineFontP.h"
#include "TermPrimSetUtmp.h"
#include "TermBufferP.h"
#include "TermP.h"
#include "TermParseTableP.h"