Fix up a few more implicit-function-declaration warnings on the BSDs
This commit is contained in:
@@ -52,10 +52,14 @@ extern "C" {
|
|||||||
** System V R4 based systems define the stuff we need in
|
** System V R4 based systems define the stuff we need in
|
||||||
** sys/types.h. Include that and then we are done.
|
** sys/types.h. Include that and then we are done.
|
||||||
*/
|
*/
|
||||||
#if defined(HPUX) || defined(__linux__) || defined(SunOS)
|
#if defined(HPUX) || defined(__linux__) || defined(SunOS) || defined(CSRG_BASED)
|
||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CSRG_BASED) || defined(__linux__)
|
||||||
|
# include <sys/socket.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(sun) && defined(_XOPEN_SOURCE)
|
#if defined(sun) && defined(_XOPEN_SOURCE)
|
||||||
#ifndef B_TRUE
|
#ifndef B_TRUE
|
||||||
#define B_TRUE _B_TRUE
|
#define B_TRUE _B_TRUE
|
||||||
@@ -104,6 +108,7 @@ typedef enum {B_FALSE, B_TRUE} boolean_t;
|
|||||||
#endif /* HPUX */
|
#endif /* HPUX */
|
||||||
|
|
||||||
#if defined(__linux__) || defined(CSRG_BASED)
|
#if defined(__linux__) || defined(CSRG_BASED)
|
||||||
|
#include <string.h> /* memset for libcsa and others */
|
||||||
typedef enum {B_FALSE, B_TRUE} boolean_t;
|
typedef enum {B_FALSE, B_TRUE} boolean_t;
|
||||||
#define MAXNAMELEN 256
|
#define MAXNAMELEN 256
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ $COPYRIGHT$:
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <strings.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/stat.h> /* for stat() */
|
#include <sys/stat.h> /* for stat() */
|
||||||
#if defined(sun)
|
#if defined(sun)
|
||||||
|
|||||||
@@ -47,6 +47,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
|
# include <sys/socket.h>
|
||||||
# include <sys/signal.h>
|
# include <sys/signal.h>
|
||||||
# include <setjmp.h>
|
# include <setjmp.h>
|
||||||
# include <errno.h>
|
# include <errno.h>
|
||||||
|
|||||||
@@ -60,6 +60,7 @@
|
|||||||
#include "TermPrimRenderP.h"
|
#include "TermPrimRenderP.h"
|
||||||
#include "TermPrimLineDrawP.h"
|
#include "TermPrimLineDrawP.h"
|
||||||
#include "TermPrimLineFontP.h"
|
#include "TermPrimLineFontP.h"
|
||||||
|
#include "TermPrimSetUtmp.h"
|
||||||
#include "TermBufferP.h"
|
#include "TermBufferP.h"
|
||||||
#include "TermP.h"
|
#include "TermP.h"
|
||||||
#include "TermParseTableP.h"
|
#include "TermParseTableP.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user