diff options
Diffstat (limited to 'libc/inet/rpc/create_xid.c')
-rw-r--r-- | libc/inet/rpc/create_xid.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libc/inet/rpc/create_xid.c b/libc/inet/rpc/create_xid.c index 69b83ff59..3b90d7a48 100644 --- a/libc/inet/rpc/create_xid.c +++ b/libc/inet/rpc/create_xid.c @@ -17,10 +17,6 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#define lrand48_r __lrand48_r -#define srand48_r __srand48_r -#define gettimeofday __gettimeofday - #define __FORCE_GLIBC #include <features.h> @@ -29,6 +25,10 @@ #include <sys/time.h> #include <rpc/rpc.h> +libc_hidden_proto(lrand48_r) +libc_hidden_proto(srand48_r) +libc_hidden_proto(gettimeofday) + /* The RPC code is not threadsafe, but new code should be threadsafe. */ #ifdef __UCLIBC_HAS_THREADS__ @@ -41,7 +41,8 @@ static pthread_mutex_t createxid_lock = PTHREAD_MUTEX_INITIALIZER; static int is_initialized; static struct drand48_data __rpc_lrand48_data; -u_long attribute_hidden _create_xid (void) +u_long _create_xid (void) attribute_hidden; +u_long _create_xid (void) { unsigned long res; |