tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
readline: add android patch
Matthew Bauer
7 years ago
67e6e031
589c2c28
+17
-1
2 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
readline
6.3.nix
android.patch
+1
-1
pkgs/development/libraries/readline/6.3.nix
reviewed
···
23
23
patches =
24
24
[ ./link-against-ncurses.patch
25
25
./no-arch_only-6.3.patch
26
26
-
]
26
26
+
] ++ stdenv.lib.optional stdenv.hostPlatform.useAndroidPrebuilt ./android.patch
27
27
++
28
28
(let
29
29
patch = nr: sha256:
+16
pkgs/development/libraries/readline/android.patch
reviewed
···
1
1
+
diff --git histlib.h histlib.h
2
2
+
index c938a10..925ab72 100644
3
3
+
--- histlib.h
4
4
+
+++ histlib.h
5
5
+
@@ -51,9 +51,9 @@
6
6
+
#endif
7
7
+
8
8
+
#ifndef member
9
9
+
-# ifndef strchr
10
10
+
+# if !defined (strchr) && !defined (__STDC__)
11
11
+
extern char *strchr ();
12
12
+
-# endif
13
13
+
+# endif /* !strchr && !__STDC__ */
14
14
+
#define member(c, s) ((c) ? ((char *)strchr ((s), (c)) != (char *)NULL) : 0)
15
15
+
#endif
16
16
+