From: tklauser@access.unizh.ch Date: Fri, 11 Mar 2005 01:31:58 +0000 (+0100) Subject: [PATCH] The following patch fixes some warnings when compiling volume_id X-Git-Tag: 055~23 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9066c16adaf90888bc2ffe1a816f3638d58e0bdb;p=systemd [PATCH] The following patch fixes some warnings when compiling volume_id --- 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_ */