Skip to content

Commit

Permalink
Take care strtonum(3) on NetBSD-8
Browse files Browse the repository at this point in the history
strtonum(3) is an OpenBSD extension on NetBSD-8,
so _OPENBSD_SOURCE must be defined before stdlib.h
  • Loading branch information
obache committed Feb 2, 2019
1 parent 78abf52 commit bb19712
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions replace/os_dep.h
Expand Up @@ -135,6 +135,9 @@ long long strtoll(const char *, char **, int);
#ifndef HAVE_STRTONUM
#define strtonum uim_internal_strtonum
long long strtonum(const char *numstr, long long minval, long long maxval, const char **errstrp);
#elif defined(__NetBSD__)
#define _OPENBSD_SOURCE
#include <stdlib.h>
#endif

#ifdef HAVE_POLL_H
Expand Down

0 comments on commit bb19712

Please sign in to comment.