diff --git a/lib/roken/roken.h b/lib/roken/roken.h index 733fcfcbd..89eba01cb 100644 --- a/lib/roken/roken.h +++ b/lib/roken/roken.h @@ -49,7 +49,7 @@ char *strerror(int eno); char *hstrerror(int herr); #endif -#ifndef HAVE_H_ERRNO +#ifdef NEED_H_ERRNO_DECLARATION extern int h_errno; #endif diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index 733fcfcbd..89eba01cb 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -49,7 +49,7 @@ char *strerror(int eno); char *hstrerror(int herr); #endif -#ifndef HAVE_H_ERRNO +#ifdef NEED_H_ERRNO_DECLARATION extern int h_errno; #endif