summaryrefslogtreecommitdiff
path: root/libc/inet/rpc/auth_none.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inet/rpc/auth_none.c')
-rw-r--r--libc/inet/rpc/auth_none.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libc/inet/rpc/auth_none.c b/libc/inet/rpc/auth_none.c
index 0983b9532..b4a341445 100644
--- a/libc/inet/rpc/auth_none.c
+++ b/libc/inet/rpc/auth_none.c
@@ -35,7 +35,9 @@
* credentials and verifiers to remote systems.
*/
-#include <rpc/rpc.h>
+#define __FORCE_GLIBC
+#include <features.h>
+#include "rpc_private.h"
#define MAX_MARSHEL_SIZE 20
@@ -61,7 +63,7 @@ struct authnone_private_s {
char marshalled_client[MAX_MARSHEL_SIZE];
u_int mcnt;
};
-#ifdef _RPC_THREAD_SAFE_
+#ifdef __UCLIBC_HAS_THREADS__
#define authnone_private ((struct authnone_private_s *)RPC_THREAD_VARIABLE(authnone_private_s))
#else
static struct authnone_private_s *authnone_private;