diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/datafiles.h | 6 | ||||
-rw-r--r-- | include/sysconf.h.in | 16 |
2 files changed, 20 insertions, 2 deletions
diff --git a/include/datafiles.h b/include/datafiles.h index 4312b5af1..568f8917f 100644 --- a/include/datafiles.h +++ b/include/datafiles.h @@ -15,6 +15,8 @@ #ifndef DATAFILES_H #define DATAFILES_H +#include <sys/param.h> + /*************************************************************************/ typedef struct dbFILE_ dbFILE; @@ -23,8 +25,8 @@ struct dbFILE_ { FILE *fp; /* The normal file descriptor */ FILE *backupfp; /* Open file pointer to a backup copy of * the database file (if non-NULL) */ - char filename[PATH_MAX]; /* Name of the database file */ - char backupname[PATH_MAX]; /* Name of the backup file */ + char filename[MAXPATHLEN]; /* Name of the database file */ + char backupname[MAXPATHLEN]; /* Name of the backup file */ }; /*************************************************************************/ diff --git a/include/sysconf.h.in b/include/sysconf.h.in index 5142b6cec..dcb6f2dbe 100644 --- a/include/sysconf.h.in +++ b/include/sysconf.h.in @@ -202,6 +202,22 @@ #include <sys/types.h> #endif +#ifdef __STRICT_ANSI__ +#include <stdarg.h> +#include <stdio.h> + +/* We KNOW these are not ansi, we are defining them here to suppress the warning +s messages on a "make strict" compile */ +int snprintf(char *str, size_t size, const char *format, ...); +int vprintf(const char *format, va_list ap); +int vfprintf(FILE *stream, const char *format, va_list ap); +int vsprintf(char *str, const char *format, va_list ap); +int vsnprintf(char *str, size_t size, const char *format, va_list ap); + +typedef unsigned char u_char; +#endif + + typedef int16_t int16; typedef u_int16_t uint16; typedef int32_t int32; |