diff options
author | Stef Walter <stef@thewalter.net> | 2006-08-29 18:04:11 +0000 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2006-08-29 18:04:11 +0000 |
commit | fd2e875c5fb0c7aa5e550d41dad4a6794df8d078 (patch) | |
tree | 2e20f50eb11d11ac72500c9d3897e8f8b602cc78 /common | |
parent | 9a41a6510a2aad8e0d07097c81f54c968b0fd99b (diff) |
compiler warnings when compiling rep
Diffstat (limited to 'common')
-rw-r--r-- | common/compat.h | 6 | ||||
-rw-r--r-- | common/usuals.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/common/compat.h b/common/compat.h index 86a9e04..bd6078a 100644 --- a/common/compat.h +++ b/common/compat.h @@ -20,6 +20,8 @@ #ifndef _COMPAT_H_ #define _COMPAT_H_ +#define _GNU_SOURCE + /* Force use of win32 configuration if compiling there */ #ifdef _WIN32 #include "../config.win32.h" @@ -156,7 +158,9 @@ extern int optind, opterr, optopt; int getopt(int nargc, char* const* nargv, const char* ostr); #endif -#ifndef HAVE_ERR_H +#ifdef HAVE_ERR_H +#include <err.h> +#else #include <stdarg.h> void err_set_file(void *fp); void err_set_exit(void (*ef)(int)); diff --git a/common/usuals.h b/common/usuals.h index d09fd72..5bd7b98 100644 --- a/common/usuals.h +++ b/common/usuals.h @@ -20,6 +20,8 @@ #ifndef __USUALS_H__20000613 #define __USUALS_H__20000613 +#define _GNU_SOURCE + #include <sys/types.h> #include <string.h> #include <stdlib.h> |