Define _GNU_SOURCE globally in CFLAGS 34/130734/3
authorŁukasz Stelmach <l.stelmach@samsung.com>
Tue, 23 May 2017 12:03:25 +0000 (14:03 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Fri, 26 May 2017 11:26:14 +0000 (13:26 +0200)
Change-Id: I0147ac08c961987e9d1ce49b87091955a5e8a35c
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
configure.ac
src/core/event.c
src/event_types/decision_made_event.c
src/event_types/resource_violation_event.c
src/event_types/service_failed_event.c
src/listeners/audit.c
src/listeners/systemd.c
src/util/common.c
src/util/log.c

index 5e2aaf6a1a975e5f273a3d3a961ad3020c417104..2778466885fb5ec35f0fc06af9021522aa12396a 100644 (file)
@@ -79,6 +79,7 @@ my_CFLAGS="\
 -Wsign-compare \
 -Wstrict-prototypes \
 -Wtype-limits \
+-D_GNU_SOURCE=1
 "
 AC_SUBST([my_CFLAGS])
 
index 211877c43996d21b82a478bcb83f529e4650d47b..3f7a1e686d40a4d2ac94282fd1f4787eb01513a2 100644 (file)
@@ -16,8 +16,6 @@
  * limitations under the License.
  */
 
-#define _GNU_SOURCE 1
-
 #include <ejdb/bson.h>
 #include <errno.h>
 #include <systemd/sd-id128.h>
index b23bd9f5d229f2828d765f43d41fc752b8cd2e1b..696ea8f4c39a9f747cca86623fad8a3660ba9ab2 100644 (file)
@@ -16,8 +16,6 @@
  * limitations under the License.
  */
 
-#define _GNU_SOURCE 1
-
 #include <ejdb/bson.h>
 #include <stdio.h>
 #include <errno.h>
index 885ff1c0d262abd926833cfc3e2ab9e05422e9d1..224ac54e6c3cdfc422dffb10b38baf4611f8b3d7 100644 (file)
@@ -16,8 +16,6 @@
  * limitations under the License.
  */
 
-#define _GNU_SOURCE 1
-
 #include <ejdb/bson.h>
 #include <stdio.h>
 #include <errno.h>
index f6b8b680803e772382c87082e0c1e8da4cf45c45..d95de2538e161c031a374eb59b71a949d955c2aa 100644 (file)
@@ -16,8 +16,6 @@
  * limitations under the License.
  */
 
-#define _GNU_SOURCE 1
-
 #include <ejdb/bson.h>
 #include <stdio.h>
 #include <errno.h>
index 14b0a808c077335a0b4d851b6441ebe2d39ed186..ac3b6df92c3516aa349589c5ad0b26c0aabf5e51 100644 (file)
@@ -16,8 +16,6 @@
  * limitations under the License.
  */
 
-#define _GNU_SOURCE 1
-
 #include <errno.h>
 #include <libaudit.h>
 #include <stdio.h>
index 3ddbf0304099a6f31c3563ef77e46739ed19857d..273afb27309931a134df5d468f4192879be906b2 100644 (file)
@@ -16,8 +16,6 @@
  * limitations under the License.
  */
 
-#define _GNU_SOURCE 1
-
 #include <poll.h>
 #include <stdbool.h>
 #include <stdio.h>
index 096b0f9a86e57681064fb60f91b8e548515f633c..b18a52543aa2ea522ff711d82209eee484b7cda0 100644 (file)
@@ -16,8 +16,6 @@
  * limitations under the License.
  */
 
-#define _GNU_SOURCE 1
-
 #include <ejdb/bson.h>
 #include <time.h>
 
index 0e12efeb969f280dc9b105d0de5d3f4c28426554..0064fa7ad1d782b0c4080777d4f88ae2ed053e44 100644 (file)
@@ -16,8 +16,6 @@
  * limitations under the License.
  */
 
-#define _GNU_SOURCE 1
-
 #include <assert.h>
 #include <errno.h>
 #include <limits.h>