Add configure checks for whether netinet/in.h is available or not
[deb_libnfs.git] / lib / pdu.c
index 3d8fecaaaefc738467f34253db8fb2dbfb47f5bb..8311d88169d06edd3c12b89af812689e49984203 100644 (file)
--- a/lib/pdu.c
+++ b/lib/pdu.c
    You should have received a copy of the GNU Lesser General Public License
    along with this program; if not, see <http://www.gnu.org/licenses/>.
 */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #ifdef AROS
 #include "aros_compat.h"
 #endif
 #else
 #include <strings.h>
 #include <sys/socket.h>
-#include <netinet/in.h>
 #endif/*WIN32*/
 
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>