Browse Source

Merge branch 'bw/inet-pton-ntop-compat' into maint

* bw/inet-pton-ntop-compat:
  Drop system includes from inet_pton/inet_ntop compatibility wrappers
maint
Junio C Hamano 13 years ago
parent
commit
801b28a34a
  1. 6
      compat/inet_ntop.c
  2. 6
      compat/inet_pton.c

6
compat/inet_ntop.c

@ -15,14 +15,8 @@ @@ -15,14 +15,8 @@
* SOFTWARE.
*/

#include <errno.h>
#include <sys/types.h>

#include "../git-compat-util.h"

#include <stdio.h>
#include <string.h>

#ifndef NS_INADDRSZ
#define NS_INADDRSZ 4
#endif

6
compat/inet_pton.c

@ -15,14 +15,8 @@ @@ -15,14 +15,8 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

#include <errno.h>
#include <sys/types.h>

#include "../git-compat-util.h"

#include <stdio.h>
#include <string.h>

#ifndef NS_INT16SZ
#define NS_INT16SZ 2
#endif

Loading…
Cancel
Save