[ofa-general] ***SPAM*** [PATCH] opensm/osm_console_io.c: Eliminate compile warnings

Hal Rosenstock hal.rosenstock at gmail.com
Thu Jul 24 09:54:02 PDT 2008


opensm/osm_console_io.c: Eliminate compile warnings

osm_console_io.c: In function `osm_console_init':
osm_console_io.c:164: warning: implicit declaration of function `socket'
osm_console_io.c:170: warning: implicit declaration of function `setsockopt'
osm_console_io.c:178: warning: implicit declaration of function `bind'
osm_console_io.c:184: warning: implicit declaration of function `listen'

Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>

diff --git a/opensm/opensm/osm_console_io.c b/opensm/opensm/osm_console_io.c
index ee0b632..b46ab7b 100644
--- a/opensm/opensm/osm_console_io.c
+++ b/opensm/opensm/osm_console_io.c
@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2005-2007 Voltaire, Inc. All rights reserved.
+ * Copyright (c) 2008 HNR Consulting. All rights reserved.
  *
  * This software is available to you under a choice of one of two
  * licenses.  You may choose to be licensed under the terms of the GNU
@@ -49,6 +50,7 @@
 #include <tcpd.h>
 #include <arpa/inet.h>
 #include <netinet/in.h>
+#include <sys/socket.h>
 #endif
 #include <unistd.h>
 #include <errno.h>



More information about the general mailing list