temporary hack to make coreutils build

This commit is contained in:
Ondřej Vašík 2012-11-02 08:34:04 +01:00
parent 72f2f9f3eb
commit ca6f66d311

View File

@ -136,3 +136,17 @@ diff -urNp coreutils-8.13-orig/tests/touch/no-dereference.sh coreutils-8.13/test
# Changing time of dangling symlink is okay. # Changing time of dangling symlink is okay.
# Skip the test if this fails, but the error text corresponds to # Skip the test if this fails, but the error text corresponds to
diff -urNp coreutils-8.20-orig/lib/fcntl.in.h coreutils-8.20/lib/fcntl.in.h
--- coreutils-8.20-orig/lib/fcntl.in.h
+++ coreutils-8.20/lib/fcntl.in.h
@@ -71,6 +71,10 @@
# define O_SYNC 0
#endif
+#ifndef __O_SYNC
+# define __O_SYNC 04000000
+#endif
+
#ifndef O_TTY_INIT
# define O_TTY_INIT 0
#endif