Update disabled-packages/sbcl
[termux-packages] / disabled-packages / util-linux / include-c.h.patch
CommitLineData
e8ca3e6a
FF
1diff -u -r ../util-linux-2.28/include/c.h ./include/c.h
2--- ../util-linux-2.28/include/c.h 2016-03-08 08:25:50.553182767 -0500
3+++ ./include/c.h 2016-06-22 06:24:22.916322177 -0400
4@@ -257,10 +257,12 @@
5 */
6 static inline size_t get_hostname_max(void)
7 {
8+#ifndef __ANDROID__
9 long len = sysconf(_SC_HOST_NAME_MAX);
10
11 if (0 < len)
12 return len;
13+#endif
14
15 #ifdef MAXHOSTNAMELEN
16 return MAXHOSTNAMELEN;