summaryrefslogtreecommitdiff
path: root/src/scsi_id
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2014-04-05 16:32:30 -0400
committerAnthony G. Basile <blueness@gentoo.org>2014-04-05 16:32:30 -0400
commit4b76ac0bff27c0a32fc22591ec4543768ae5b991 (patch)
treed1ebdb173697e6c487556b98d98a7bebcfc613dc /src/scsi_id
parentc4c265804080234bd1fd47f8c5bf9e58aeca677a (diff)
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 <blueness@gentoo.org>
Diffstat (limited to 'src/scsi_id')
-rw-r--r--src/scsi_id/scsi_serial.c8
1 files changed, 4 insertions, 4 deletions
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 <http://www.gnu.org/licenses/>.
*/
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE 1
+#endif
+
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
@@ -34,10 +38,6 @@
#include <linux/types.h>
#include <linux/bsg.h>
-#ifdef __UCLIBC__
-#include <linux/fcntl.h>
-#endif
-
#include "libudev.h"
#include "libudev-private.h"
#include "scsi.h"