Fix up a few more implicit-function-declaration warnings on the BSDs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
*/
|
||||
|
||||
# include <sys/types.h>
|
||||
# include <sys/socket.h>
|
||||
# include <sys/signal.h>
|
||||
# include <setjmp.h>
|
||||
# include <errno.h>
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user