diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index 94c958024..643aae78d 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -312,7 +312,7 @@ const char * ROKEN_LIB_FUNCTION hstrerror(int); #endif #endif -#if HAVE_DECL_H_ERRNO +#if !HAVE_DECL_H_ERRNO extern int h_errno; #endif @@ -509,13 +509,13 @@ int ROKEN_LIB_FUNCTION get_window_size(int fd, struct winsize *); void ROKEN_LIB_FUNCTION vsyslog(int, const char *, va_list); #endif -#if HAVE_DECL_OPTARG +#if !HAVE_DECL_OPTARG extern char *optarg; #endif -#if HAVE_DECL_OPTIND +#if !HAVE_DECL_OPTIND extern int optind; #endif -#if HAVE_DECL_OPTERR +#if !HAVE_DECL_OPTERR extern int opterr; #endif