debian: O_TMPFILE already defined

This commit is contained in:
Marek Marczykowski-Górecki 2015-02-01 03:06:47 +01:00
parent ba61c8405c
commit d0a23bdd09

View File

@ -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)
{