Hi!
Following patch adds missing include unistd.h needed for gethostbyname() and
getpid() into rpc1.c.
Signed-off-by: Cyril Hrubis [email protected]
--
Cyril Hrubis
[email protected]
Index: ltp-full-20100228/testcases/network/rpc/basic_tests/rpc01/rpc1.c
===================================================================
--- ltp-full-20100228.orig/testcases/network/rpc/basic_tests/rpc01/rpc1.c
+++ ltp-full-20100228/testcases/network/rpc/basic_tests/rpc01/rpc1.c
@@ -8,6 +8,7 @@
#include <sys/stat.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
int program = 2000333;
int version = 10;
@@ -28,8 +29,7 @@ int xdr_send_data(XDR *, struct data *);
void do_compare(int, char *, struct data *, char *);
void usage_error(char *program_name);
-int
-main(int argc, char *argv[])
+int main(int argc, char *argv[])
{
struct hostent *hp;
struct data buffer, *return_buffer;
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list