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:
Vasil Velichkov 2016-08-01 16:52:02 +03:00 committed by Lev Walkin
parent 9e935ae7d3
commit adf6594053
2 changed files with 4 additions and 0 deletions

View File

@ -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>

View File

@ -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