summaryrefslogtreecommitdiffstats
path: root/usr.bin/rpcgen/rpc_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/rpcgen/rpc_parse.c')
-rw-r--r--usr.bin/rpcgen/rpc_parse.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/usr.bin/rpcgen/rpc_parse.c b/usr.bin/rpcgen/rpc_parse.c
index 1d952cc..a4a44c8 100644
--- a/usr.bin/rpcgen/rpc_parse.c
+++ b/usr.bin/rpcgen/rpc_parse.c
@@ -1,3 +1,4 @@
+/* $FreeBSD$ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
* unrestricted use provided that this legend is included on all tape
@@ -593,7 +594,11 @@ get_type(prefixp, typep, dkind)
(void) peekscan(TOK_INT, &tok);
break;
case TOK_HYPER:
+#ifdef __FreeBSD__
*typep = "int64_t";
+#else
+ *typep = "longlong_t";
+#endif
(void) peekscan(TOK_INT, &tok);
break;
@@ -642,7 +647,12 @@ unsigned_dec(typep)
break;
case TOK_HYPER:
get_token(&tok);
+#ifdef __FreeBSD__
*typep = "u_int64_t";
+#else
+ *typep = "longlong_t";
+#endif
+
(void) peekscan(TOK_INT, &tok);
break;
case TOK_INT:
OpenPOWER on IntegriCloud