Define _POSIX_VDISABLE, if not defined.
authorMoritz Angermann <moritz.angermann@gmail.com>
Wed, 15 Mar 2017 13:19:09 +0000 (21:19 +0800)
committerMoritz Angermann <moritz.angermann@gmail.com>
Wed, 15 Mar 2017 13:19:09 +0000 (21:19 +0800)
System/Posix/Terminal/Common.hsc

index 573df16..2773158 100644 (file)
 --
 -----------------------------------------------------------------------------
 
+-- see https://android.googlesource.com/platform/bionic/+/9ae59c0/libc/bionic/pathconf.c#37
+#if !defined(_POSIX_VDISABLE) && defined(__ANDROID__)
+#define _POSIX_VDISABLE -1
+#endif
+
+
 module System.Posix.Terminal.Common (
   -- * Terminal support