readline: add android patch
This commit is contained in:
parent
589c2c2870
commit
67e6e031e1
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
|
|||||||
patches =
|
patches =
|
||||||
[ ./link-against-ncurses.patch
|
[ ./link-against-ncurses.patch
|
||||||
./no-arch_only-6.3.patch
|
./no-arch_only-6.3.patch
|
||||||
]
|
] ++ stdenv.lib.optional stdenv.hostPlatform.useAndroidPrebuilt ./android.patch
|
||||||
++
|
++
|
||||||
(let
|
(let
|
||||||
patch = nr: sha256:
|
patch = nr: sha256:
|
||||||
|
16
pkgs/development/libraries/readline/android.patch
Normal file
16
pkgs/development/libraries/readline/android.patch
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
diff --git histlib.h histlib.h
|
||||||
|
index c938a10..925ab72 100644
|
||||||
|
--- histlib.h
|
||||||
|
+++ histlib.h
|
||||||
|
@@ -51,9 +51,9 @@
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef member
|
||||||
|
-# ifndef strchr
|
||||||
|
+# if !defined (strchr) && !defined (__STDC__)
|
||||||
|
extern char *strchr ();
|
||||||
|
-# endif
|
||||||
|
+# endif /* !strchr && !__STDC__ */
|
||||||
|
#define member(c, s) ((c) ? ((char *)strchr ((s), (c)) != (char *)NULL) : 0)
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user