chiark / gitweb /
[PATCH] The following patch fixes some warnings when compiling volume_id
authortklauser@access.unizh.ch <tklauser@access.unizh.ch>
Fri, 11 Mar 2005 01:31:58 +0000 (02:31 +0100)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 06:53:17 +0000 (23:53 -0700)
extras/volume_id/Makefile
extras/volume_id/udev_volume_id.c
extras/volume_id/volume_id/logging.h

index 9c27421..efec58f 100644 (file)
@@ -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
index 54d9527..a00b01a 100644 (file)
  *
  */
 
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE 1
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
index c81dc57..ac30264 100644 (file)
@@ -16,6 +16,6 @@
 #endif
 
 /* just use the udev version */
-#include "../../logging.h"
+#include "../../../logging.h"
 
 #endif /* _VOLUME_ID_LOGGING_H_ */