diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-05-18 09:28:59 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-05-18 09:29:30 +0200 |
commit | c68b9e5076094d60e8f767ffcd3bb9c224fc3fe9 (patch) | |
tree | f3d2b986be5a8f0c5039658fc21e420488c07e5d /package/nfs-utils/patches/patch-utils_mountd_cache_c | |
parent | 60bc3658b3ef53082c17817690ab0c6bf7f25e26 (diff) |
fix musl compile, patches from AlpineLinux
Diffstat (limited to 'package/nfs-utils/patches/patch-utils_mountd_cache_c')
-rw-r--r-- | package/nfs-utils/patches/patch-utils_mountd_cache_c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/package/nfs-utils/patches/patch-utils_mountd_cache_c b/package/nfs-utils/patches/patch-utils_mountd_cache_c new file mode 100644 index 000000000..440f46d82 --- /dev/null +++ b/package/nfs-utils/patches/patch-utils_mountd_cache_c @@ -0,0 +1,22 @@ +--- nfs-utils-1.3.0.orig/utils/mountd/cache.c 2014-03-25 16:12:07.000000000 +0100 ++++ nfs-utils-1.3.0/utils/mountd/cache.c 2014-05-17 21:57:07.653571824 +0200 +@@ -11,6 +11,10 @@ + #include <config.h> + #endif + ++#ifndef _GNU_SOURCE ++#define _GNU_SOURCE ++#endif ++ + #include <sys/types.h> + #include <sys/select.h> + #include <sys/stat.h> +@@ -1339,7 +1343,7 @@ static int cache_export_ent(char *domain + */ + struct stat stb; + size_t l = strlen(exp->e_path); +- __dev_t dev; ++ dev_t dev; + + if (strlen(path) <= l || path[l] != '/' || + strncmp(exp->e_path, path, l) != 0) |