mirror of https://gerrit.osmocom.org/asn1c
Fix "_BSD_SOURCE" redefined warning
../../skeletons/GeneralizedTime.c:7:0: warning: "_BSD_SOURCE" redefined [enabled by default] #define _BSD_SOURCE /* for timegm(3) */
This commit is contained in:
parent
9e935ae7d3
commit
adf6594053
|
@ -4,7 +4,9 @@
|
|||
*/
|
||||
#define _POSIX_PTHREAD_SEMANTICS /* for Sun */
|
||||
#define _REENTRANT /* for Sun */
|
||||
#ifndef _BSD_SOURCE
|
||||
#define _BSD_SOURCE /* for timegm(3) */
|
||||
#endif
|
||||
#include <asn_internal.h>
|
||||
#include <GeneralizedTime.h>
|
||||
|
||||
|
|
|
@ -3,7 +3,9 @@
|
|||
* Redistribution and modifications are permitted subject to BSD license.
|
||||
*/
|
||||
#define _ISOC99_SOURCE /* For ilogb() and quiet NAN */
|
||||
#ifndef _BSD_SOURCE
|
||||
#define _BSD_SOURCE /* To reintroduce finite(3) */
|
||||
#endif
|
||||
#if defined(__alpha)
|
||||
#include <sys/resource.h> /* For INFINITY */
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue