define INADDR_LOOPBACK when needed

fixes #161
This commit is contained in:
Thomas Bernard 2015-11-17 10:08:01 +01:00
parent 84b609849a
commit 87fbbd0e5b
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $Id: minihttptestserver.c,v 1.18 2015/07/15 12:41:15 nanard Exp $ */ /* $Id: minihttptestserver.c,v 1.19 2015/11/17 09:07:17 nanard Exp $ */
/* Project : miniUPnP /* Project : miniUPnP
* Author : Thomas Bernard * Author : Thomas Bernard
* Copyright (c) 2011-2015 Thomas Bernard * Copyright (c) 2011-2015 Thomas Bernard
@ -18,6 +18,10 @@
#include <time.h> #include <time.h>
#include <errno.h> #include <errno.h>
#ifndef INADDR_LOOPBACK
#define INADDR_LOOPBACK 0x7f000001
#endif
#define CRAP_LENGTH (2048) #define CRAP_LENGTH (2048)
volatile sig_atomic_t quit = 0; volatile sig_atomic_t quit = 0;