summaryrefslogtreecommitdiff
path: root/src/network/Makefile
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2016-08-28 17:26:42 +0200
committerYann E. MORIN <yann.morin.1998@free.fr>2016-08-29 12:40:22 +0200
commitdaad709a7c13c0fac73e407528f96cc876c09629 (patch)
treeeac5259e2762e1db862217e874000208049d26d2 /src/network/Makefile
parent4a6d35237f96d07f3a783c874933f87bf14f93e0 (diff)
missing.h: add missing definitions for __O_TMPFILE
Currently, a missing __O_TMPFILE was only defined for i386 and x86_64, leaving any other architectures with an "old" toolchain fail miserably at build time: src/import/export-raw.c: In function 'reflink_snapshot': src/import/export-raw.c:271:26: error: 'O_TMPFILE' undeclared (first use in this function) new_fd = open(d, O_TMPFILE|O_CLOEXEC|O_NOCTTY|O_RDWR, 0600); ^ __O_TMPFILE (and O_TMPFILE) are available since glibc 2.19. However, a lot of existing toolchains are still using glibc-2.18, and some even before that, and it is not really possible to update those toolchains. Instead of defining it only for i386 and x86_64, define __O_TMPFILE with the specific values for those archs where it is different from the generic value. Use the values as found in the Linux kernel (v4.8-rc3, current as of time of commit). --- Note: tested on ARM (build+run), with glibc-2.18 and linux headers 3.12. Untested on other archs, though (I have no board to test this). Changes v1 -> v2: - add a comment specifying some are hexa, others are octal.
Diffstat (limited to 'src/network/Makefile')
0 files changed, 0 insertions, 0 deletions