summaryrefslogtreecommitdiffstats
path: root/extract-gcov.c
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2015-06-26 11:21:49 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-06-29 20:03:44 +1000
commit4153f5d6a76736f8ba9500880d8f0c1034bdd1b6 (patch)
tree6b98604f50c38e35731524efc49a488eb6294c51 /extract-gcov.c
parent055ccc36c585230f234d4a3a17e8acea090057b3 (diff)
downloadtalos-skiboot-4153f5d6a76736f8ba9500880d8f0c1034bdd1b6.tar.gz
talos-skiboot-4153f5d6a76736f8ba9500880d8f0c1034bdd1b6.zip
GCOV: Fix compilation error
On gcc v4.9.2 we are hitting below error. [ HOSTCC ] extract-gcov.c In file included from /usr/include/stdint.h:25:0, from /usr/lib/gcc/x86_64-redhat-linux/4.9.2/include/stdint.h:9, from /data/opensource/pkvm/skiboot/ccan/short_types/short_types.h:4, from extract-gcov.c:18: /usr/include/features.h:148:3: error: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^ cc1: all warnings being treated as errors /data/opensource/pkvm/skiboot/Makefile.main:179: recipe for target 'extract-gcov' failed >From features.h header file: /* _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not issue a warning; the expectation is that the source is being transitioned to use the new macro. */ Hence replace _BSD_SOURCE with _DEFAULT_SOURCE. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> CC: Stewart Smith <stewart@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'extract-gcov.c')
-rw-r--r--extract-gcov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extract-gcov.c b/extract-gcov.c
index 17fa25ad..8320b3ae 100644
--- a/extract-gcov.c
+++ b/extract-gcov.c
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-#define _BSD_SOURCE
+#define _DEFAULT_SOURCE
#include <ccan/short_types/short_types.h>
#include <endian.h>
#include <sys/types.h>
OpenPOWER on IntegriCloud