diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-10 11:34:06 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-10 11:34:06 +0000 |
commit | cd44ac2b6b350bf66bc575053c7a7e7622c91e9c (patch) | |
tree | 4b64edab70d60811b82bb3f8405af11313135761 /src | |
parent | b50873653627be1bd12ae070667cb919d667a39a (diff) | |
download | skalibs-cd44ac2b6b350bf66bc575053c7a7e7622c91e9c.tar.xz |
Add guards around EOVERFLOW defines. (Thanks, OpenBSD)
Diffstat (limited to 'src')
-rw-r--r-- | src/libbiguint/bu_addc.c | 2 | ||||
-rw-r--r-- | src/libbiguint/bu_copy.c | 2 | ||||
-rw-r--r-- | src/libbiguint/bu_scan.c | 2 | ||||
-rw-r--r-- | src/libbiguint/bu_subc.c | 2 | ||||
-rw-r--r-- | src/libstddjb/localtm_from_ltm64.c | 2 |
5 files changed, 10 insertions, 0 deletions
diff --git a/src/libbiguint/bu_addc.c b/src/libbiguint/bu_addc.c index 0a57531..cccc7a8 100644 --- a/src/libbiguint/bu_addc.c +++ b/src/libbiguint/bu_addc.c @@ -1,7 +1,9 @@ /* ISC license. */ /* OpenBSD needs that for EOVERFLOW. wtfbsdseriously */ +#ifndef _BSD_SOURCE #define _BSD_SOURCE +#endif #include <errno.h> #include <skalibs/uint32.h> diff --git a/src/libbiguint/bu_copy.c b/src/libbiguint/bu_copy.c index 1358aca..aff6e51 100644 --- a/src/libbiguint/bu_copy.c +++ b/src/libbiguint/bu_copy.c @@ -1,7 +1,9 @@ /* ISC license. */ /* OpenBSD needs that for EOVERFLOW. wtfbsdseriously */ +#ifndef _BSD_SOURCE #define _BSD_SOURCE +#endif #include <errno.h> #include <skalibs/uint32.h> diff --git a/src/libbiguint/bu_scan.c b/src/libbiguint/bu_scan.c index a34ed99..42d4530 100644 --- a/src/libbiguint/bu_scan.c +++ b/src/libbiguint/bu_scan.c @@ -1,7 +1,9 @@ /* ISC license. */ /* OpenBSD needs that for EOVERFLOW. wtfbsdseriously */ +#ifndef _BSD_SOURCE #define _BSD_SOURCE +#endif #include <errno.h> #include <skalibs/uint32.h> diff --git a/src/libbiguint/bu_subc.c b/src/libbiguint/bu_subc.c index c26adca..a5d0037 100644 --- a/src/libbiguint/bu_subc.c +++ b/src/libbiguint/bu_subc.c @@ -1,7 +1,9 @@ /* ISC license. */ /* OpenBSD needs that for EOVERFLOW. wtfbsdseriously */ +#ifndef _BSD_SOURCE #define _BSD_SOURCE +#endif #include <errno.h> #include <skalibs/uint32.h> diff --git a/src/libstddjb/localtm_from_ltm64.c b/src/libstddjb/localtm_from_ltm64.c index 63c5aac..d549df9 100644 --- a/src/libstddjb/localtm_from_ltm64.c +++ b/src/libstddjb/localtm_from_ltm64.c @@ -1,7 +1,9 @@ /* ISC license. */ /* OpenBSD needs that for EOVERFLOW. wtfbsdseriously */ +#ifndef _BSD_SOURCE #define _BSD_SOURCE +#endif #include <sys/types.h> #include <errno.h> |