From 9066c16adaf90888bc2ffe1a816f3638d58e0bdb Mon Sep 17 00:00:00 2001 From: "tklauser@access.unizh.ch" Date: Fri, 11 Mar 2005 02:31:58 +0100 Subject: [PATCH] [PATCH] The following patch fixes some warnings when compiling volume_id --- extras/volume_id/Makefile | 2 +- extras/volume_id/udev_volume_id.c | 4 ++++ extras/volume_id/volume_id/logging.h | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/extras/volume_id/Makefile b/extras/volume_id/Makefile index 9c274212..efec58f8 100644 --- a/extras/volume_id/Makefile +++ b/extras/volume_id/Makefile @@ -28,7 +28,7 @@ INSTALL_PROGRAM = ${INSTALL} INSTALL_DATA = ${INSTALL} -m 644 INSTALL_SCRIPT = ${INSTALL_PROGRAM} -override CFLAGS+=-D_FILE_OFFSET_BITS=64 +override CFLAGS+=-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE VOLUME_ID_BASE=volume_id include $(VOLUME_ID_BASE)/Makefile.inc diff --git a/extras/volume_id/udev_volume_id.c b/extras/volume_id/udev_volume_id.c index 54d95270..a00b01a2 100644 --- a/extras/volume_id/udev_volume_id.c +++ b/extras/volume_id/udev_volume_id.c @@ -21,6 +21,10 @@ * */ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE 1 +#endif + #include #include #include diff --git a/extras/volume_id/volume_id/logging.h b/extras/volume_id/volume_id/logging.h index c81dc575..ac302641 100644 --- a/extras/volume_id/volume_id/logging.h +++ b/extras/volume_id/volume_id/logging.h @@ -16,6 +16,6 @@ #endif /* just use the udev version */ -#include "../../logging.h" +#include "../../../logging.h" #endif /* _VOLUME_ID_LOGGING_H_ */ -- 2.39.5