mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
[PATCH] The following patch fixes some warnings when compiling volume_id
This commit is contained in:
parent
e296b1476e
commit
9066c16ada
@ -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
|
||||
|
@ -21,6 +21,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE 1
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
@ -16,6 +16,6 @@
|
||||
#endif
|
||||
|
||||
/* just use the udev version */
|
||||
#include "../../logging.h"
|
||||
#include "../../../logging.h"
|
||||
|
||||
#endif /* _VOLUME_ID_LOGGING_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user