From d5c0761da590c75fef332a90a264051b4bd6ee66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 1 Feb 2015 03:06:47 +0100 Subject: [PATCH] debian: O_TMPFILE already defined --- qrexec-lib/unpack.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qrexec-lib/unpack.c b/qrexec-lib/unpack.c index 3bc9dda..df0732e 100644 --- a/qrexec-lib/unpack.c +++ b/qrexec-lib/unpack.c @@ -27,9 +27,11 @@ void send_status_and_crc(int code, const char *last_filename); #ifndef __O_TMPFILE #define __O_TMPFILE 020000000 #endif +#ifndef O_TMPFILE /* a horrid kludge trying to make sure that this will fail on old kernels */ #define O_TMPFILE (__O_TMPFILE | O_DIRECTORY) #define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT) +#endif void do_exit(int code, const char *last_filename) {