summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2011-06-15 18:31:56 +0000
committerBlue Swirl <blauwirbel@gmail.com>2011-06-15 18:31:56 +0000
commit22e1e729600dad1639329185614d094243409359 (patch)
treeaddcd6c187e2aed6deec88d20b0df99ca3559eec /configure
parentc235d7387c850857ec6b0ba8ee28c7e1548f68c0 (diff)
parentf97742d0d36810ea72a2bd40b3abb890589ea3b8 (diff)
downloadqemu-22e1e729600dad1639329185614d094243409359.tar.gz
Merge branch 'cocoa-for-upstream' of git://repo.or.cz/qemu/afaerber
* 'cocoa-for-upstream' of git://repo.or.cz/qemu/afaerber: Darwin: Fix compilation warning regarding the deprecated daemon() function cocoa: Avoid warning related to multiple handleEvent: definitions cocoa: Revert dependency on VNC cocoa: Provide central qemu_main() prototype Fix libfdt warnings on Darwin configure: Fix check for fdatasync() Remove warning in printf due to type mismatch Cocoa: avoid displaying window when command-line contains '-h' or '-help' Fix compilation warning due to incorrectly specified type cocoa: do not create a spurious window for -version
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index a6e9d1c85a..4c4aa92198 100755
--- a/configure
+++ b/configure
@@ -2473,7 +2473,13 @@ fi
fdatasync=no
cat > $TMPC << EOF
#include <unistd.h>
-int main(void) { return fdatasync(0); }
+int main(void) {
+#if defined(_POSIX_SYNCHRONIZED_IO) && _POSIX_SYNCHRONIZED_IO > 0
+return fdatasync(0);
+#else
+#abort Not supported
+#endif
+}
EOF
if compile_prog "" "" ; then
fdatasync=yes