[commit: packages/unix] master: Define _POSIX_VDISABLE, if not defined. (d7aa9cd)
git at git.haskell.org
git at git.haskell.org
Wed Jul 19 22:04:53 UTC 2017
Repository : ssh://git@git.haskell.org/unix
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/d7aa9cd00bbff62f1873e242ffe3f816c2fdc5b5/unix
>---------------------------------------------------------------
commit d7aa9cd00bbff62f1873e242ffe3f816c2fdc5b5
Author: Moritz Angermann <moritz.angermann at gmail.com>
Date: Wed Mar 15 21:19:09 2017 +0800
Define _POSIX_VDISABLE, if not defined.
>---------------------------------------------------------------
d7aa9cd00bbff62f1873e242ffe3f816c2fdc5b5
System/Posix/Terminal/Common.hsc | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/System/Posix/Terminal/Common.hsc b/System/Posix/Terminal/Common.hsc
index 573df16..2773158 100644
--- a/System/Posix/Terminal/Common.hsc
+++ b/System/Posix/Terminal/Common.hsc
@@ -15,6 +15,12 @@
--
-----------------------------------------------------------------------------
+-- 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
More information about the ghc-commits
mailing list