]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
INADDR_LOOPBACK now defined in some FreeBSD versions - don't redefine it.
authorTed Lemon <source@isc.org>
Thu, 5 Nov 1998 18:49:12 +0000 (18:49 +0000)
committerTed Lemon <source@isc.org>
Thu, 5 Nov 1998 18:49:12 +0000 (18:49 +0000)
includes/cf/freebsd.h

index 965d33236f238c151524e98915ecca86cbbfd9a3..032d52c2b002961e9255daf122ca646210229a73 100644 (file)
@@ -3,7 +3,8 @@
    System dependencies for FreeBSD... */
 
 /*
- * Copyright (c) 1996 The Internet Software Consortium.  All rights reserved.
+ * Copyright (c) 1996, 1998 The Internet Software Consortium.
+ * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -53,7 +54,10 @@ extern int h_errno;
 
 #include <net/if.h>
 #include <net/if_dl.h>
-#define INADDR_LOOPBACK        ((u_int32_t)0x7f000001)
+#include <net/if_arp.h>
+#if !defined (INADDR_LOOPBACK)
+# define INADDR_LOOPBACK ((u_int32_t)0x7f000001)
+#endif
 
 /* Varargs stuff... */
 #include <stdarg.h>