Do not redefine _GNU_SOURCE if already set
Or else, compilation will fail. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>main
parent
039a99414e
commit
71c19f20b3
2
srcpos.c
2
srcpos.c
|
@ -3,7 +3,9 @@
|
||||||
* Copyright 2007 Jon Loeliger, Freescale Semiconductor, Inc.
|
* Copyright 2007 Jon Loeliger, Freescale Semiconductor, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _GNU_SOURCE
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,9 @@
|
||||||
* Copyright (C) 2006 David Gibson, IBM Corporation.
|
* Copyright (C) 2006 David Gibson, IBM Corporation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _GNU_SOURCE
|
||||||
#define _GNU_SOURCE /* for strsignal() in glibc. FreeBSD has it either way */
|
#define _GNU_SOURCE /* for strsignal() in glibc. FreeBSD has it either way */
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
Loading…
Reference in New Issue