aboutsummaryrefslogtreecommitdiffstats
path: root/community/libnsl/nis_h.patch
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-07-03 09:07:07 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-07-03 09:07:07 +0000
commit925deab8814d5aca05091f621e57426c698eafe9 (patch)
tree41634ff1256bc25fd89b0e71b0bb21718e5bddee /community/libnsl/nis_h.patch
parent7acdbc68ea9e9c3736761e763f7d259ab69f91c1 (diff)
downloadaports-925deab8814d5aca05091f621e57426c698eafe9.tar.bz2
aports-925deab8814d5aca05091f621e57426c698eafe9.tar.xz
community/libnsl: moved from testing, added check() function
Diffstat (limited to 'community/libnsl/nis_h.patch')
-rw-r--r--community/libnsl/nis_h.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/community/libnsl/nis_h.patch b/community/libnsl/nis_h.patch
new file mode 100644
index 0000000000..199259df2e
--- /dev/null
+++ b/community/libnsl/nis_h.patch
@@ -0,0 +1,45 @@
+--- a/src/rpcsvc/nis.h
++++ b/src/rpcsvc/nis.h
+@@ -32,6 +32,7 @@
+ #ifndef _RPCSVC_NIS_H
+ #define _RPCSVC_NIS_H 1
+
++#include <sys/cdefs.h>
+ #include <features.h>
+ #include <rpc/rpc.h>
+ #include <rpcsvc/nis_tags.h>
+@@ -56,6 +57,34 @@
+ * <kukuk@suse.de>
+ */
+
++#ifndef rawmemchr
++#define rawmemchr(s,c) memchr((s),(size_t)-1,(c))
++#endif
++
++#ifndef __asprintf
++#define __asprintf asprintf
++#endif
++
++#ifndef __mempcpy
++#define __mempcpy mempcpy
++#endif
++
++#ifndef __strtok_r
++#define __strtok_r strtok_r
++#endif
++
++#ifndef __always_inline
++#define __always_inline __attribute__((__always_inline__))
++#endif
++
++#ifndef TEMP_FAILURE_RETRY
++#define TEMP_FAILURE_RETRY(exp) ({ \
++typeof (exp) _rc; \
++ do { \
++ _rc = (exp); \
++ } while (_rc == -1 && errno == EINTR); \
++ _rc; })
++#endif
+
+ #ifndef __nis_object_h
+ #define __nis_object_h