summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2017-09-05 14:36:06 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2017-09-08 17:04:18 +0200
commit16ea5eec38c062429dd847a679fc1e6db007d7f8 (patch)
tree69e869b652ea5cac8226eb26391ff536d8b4b684 /tools
parent00215dd5b78cfe05838b8e39e092480f80ed6deb (diff)
build: remove _GNU_SOURCE from source files
We are, the build system takes care of that. Reviewed-by: Eric Anholt <eric@anholt.net> Acked-by: Jani Nikula <jani.nikula@intel.com> Acked-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Acked-by: Petri Latvala <petri.latvala@intel.com> Acked-by: Daniel Stone <daniels@collabora.com> Acked-by: Radoslaw Szwichtenberg <radoslaw.szwichtenberg@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tools')
-rw-r--r--tools/aubdump.c2
-rw-r--r--tools/intel_audio_dump.c1
-rw-r--r--tools/intel_dump_decode.c1
-rw-r--r--tools/intel_error_decode.c1
-rw-r--r--tools/intel_framebuffer_dump.c1
-rw-r--r--tools/intel_gpu_frequency.c1
-rw-r--r--tools/intel_guc_logger.c1
-rw-r--r--tools/intel_l3_parity.c1
-rw-r--r--tools/intel_l3_udev_listener.c3
9 files changed, 0 insertions, 12 deletions
diff --git a/tools/aubdump.c b/tools/aubdump.c
index 4387ea83..4392e589 100644
--- a/tools/aubdump.c
+++ b/tools/aubdump.c
@@ -21,8 +21,6 @@
* IN THE SOFTWARE.
*/
-#define _GNU_SOURCE /* for RTLD_NEXT */
-
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
diff --git a/tools/intel_audio_dump.c b/tools/intel_audio_dump.c
index c8d369b5..90260a2f 100644
--- a/tools/intel_audio_dump.c
+++ b/tools/intel_audio_dump.c
@@ -26,7 +26,6 @@
*
*/
-#define _GNU_SOURCE
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
diff --git a/tools/intel_dump_decode.c b/tools/intel_dump_decode.c
index 0341aada..4bb77440 100644
--- a/tools/intel_dump_decode.c
+++ b/tools/intel_dump_decode.c
@@ -25,7 +25,6 @@
*
*/
-#define _GNU_SOURCE
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/tools/intel_error_decode.c b/tools/intel_error_decode.c
index 2cbdd887..cdef3b18 100644
--- a/tools/intel_error_decode.c
+++ b/tools/intel_error_decode.c
@@ -38,7 +38,6 @@
* decode, but never crash in the process.
*/
-#define _GNU_SOURCE
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/tools/intel_framebuffer_dump.c b/tools/intel_framebuffer_dump.c
index 624a9613..79c0688b 100644
--- a/tools/intel_framebuffer_dump.c
+++ b/tools/intel_framebuffer_dump.c
@@ -26,7 +26,6 @@
* Read back all the KMS framebuffers attached to the CRTC and record as PNG.
*/
-#define _GNU_SOURCE
#include <stdint.h>
#include <sys/types.h>
#include <sys/mman.h>
diff --git a/tools/intel_gpu_frequency.c b/tools/intel_gpu_frequency.c
index cb758b0a..5c439b03 100644
--- a/tools/intel_gpu_frequency.c
+++ b/tools/intel_gpu_frequency.c
@@ -46,7 +46,6 @@
* intel_gpu_frequency -d
*/
-#define _GNU_SOURCE
#include <assert.h>
#include <getopt.h>
#include <stdio.h>
diff --git a/tools/intel_guc_logger.c b/tools/intel_guc_logger.c
index 3079878e..7c6115a6 100644
--- a/tools/intel_guc_logger.c
+++ b/tools/intel_guc_logger.c
@@ -1,5 +1,4 @@
-#define _GNU_SOURCE /* For using O_DIRECT */
#include <inttypes.h>
#include <stdio.h>
#include <fcntl.h>
diff --git a/tools/intel_l3_parity.c b/tools/intel_l3_parity.c
index 26b7caaa..9df4fc24 100644
--- a/tools/intel_l3_parity.c
+++ b/tools/intel_l3_parity.c
@@ -25,7 +25,6 @@
*
*/
-#define _GNU_SOURCE
#include <sys/types.h>
#include <sys/stat.h>
#include <assert.h>
diff --git a/tools/intel_l3_udev_listener.c b/tools/intel_l3_udev_listener.c
index 57a0f0bf..94d931e5 100644
--- a/tools/intel_l3_udev_listener.c
+++ b/tools/intel_l3_udev_listener.c
@@ -25,9 +25,6 @@
#ifdef HAVE_UDEV
#include <libudev.h>
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>