diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2017-03-20 11:29:35 +0200 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-03-20 12:42:38 +0000 |
commit | bdc6bdb2679207e81d6e663c1ddc5c062ab67647 (patch) | |
tree | 05a1af0ed904a911de6746598d91d5ecea8d10b2 /testing/libnsl/nis_h.patch | |
parent | 0af8c1c4cf59aef6ce0608092b810dbe41241efb (diff) | |
download | aports-bdc6bdb2679207e81d6e663c1ddc5c062ab67647.tar.bz2 aports-bdc6bdb2679207e81d6e663c1ddc5c062ab67647.tar.xz |
testing/libnsl: new aport
http://www.linux-nis.org
https://github.com/thkukuk/libnsl
This library contains the public client interface
for NIS(YP) and NIS+ in a IPv6 ready version
Diffstat (limited to 'testing/libnsl/nis_h.patch')
-rw-r--r-- | testing/libnsl/nis_h.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/libnsl/nis_h.patch b/testing/libnsl/nis_h.patch new file mode 100644 index 0000000000..199259df2e --- /dev/null +++ b/testing/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 |