From 4b76ac0bff27c0a32fc22591ec4543768ae5b991 Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Sat, 5 Apr 2014 16:32:30 -0400 Subject: Revisit issue #87: fails to build on linux headers 3.13 We switch to defining _GNU_SOURCE as we do for cdrom_id.c for a more consistant approach to this issue. Signed-off-by: Anthony G. Basile --- src/scsi_id/scsi_serial.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/scsi_id') diff --git a/src/scsi_id/scsi_serial.c b/src/scsi_id/scsi_serial.c index b9a94e66e6..c3f957db71 100644 --- a/src/scsi_id/scsi_serial.c +++ b/src/scsi_id/scsi_serial.c @@ -17,6 +17,10 @@ * along with this program. If not, see . */ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE 1 +#endif + #include #include #include @@ -34,10 +38,6 @@ #include #include -#ifdef __UCLIBC__ -#include -#endif - #include "libudev.h" #include "libudev-private.h" #include "scsi.h" -- cgit v1.2.3-54-g00ecf