[hipl-commit] [trunk] Rev 3597: Remove the _BSD_SOURCE feature test macro from global CPPFLAGS. Thus:

  • From: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Thu, 11 Feb 2010 12:03:24 +0200

Committer: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
Date: Thu Feb 11 10:57:04 2010 +0100
Revision: 3597
Revision-id: mircea.gherzan@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Remove the _BSD_SOURCE feature test macro from global CPPFLAGS. Thus:
  1. add it to .c files that require it (POSIX does not require a 
     s6_addr32 member in in6_addr). Some might view this as breaking the
     DRY rule, but it's not
  2. replace bzero (deprecated) with memset.

Modified:
  M  configure.ac
  M  firewall/cache.c
  M  firewall/cache_port.c
  M  firewall/common_hipd_msg.c
  M  firewall/conntrack.c
  M  firewall/datapkt.c
  M  firewall/esp_prot_config.c
  M  firewall/esp_prot_conntrack.c
  M  firewall/esp_prot_fw_msg.c
  M  firewall/firewall.c
  M  firewall/firewall_control.c
  M  firewall/firewalldb.c
  M  firewall/lsi.c
  M  firewall/opptcp.c
  M  firewall/proxy.c
  M  firewall/proxyconndb.c
  M  firewall/proxydb.c
  M  firewall/rule_management.c
  M  firewall/sava_api.c
  M  firewall/savah_gateway.c
  M  firewall/sysopp.c
  M  firewall/user_ipsec_api.c
  M  firewall/user_ipsec_esp.c
  M  firewall/user_ipsec_fw_msg.c
  M  firewall/user_ipsec_sadb.c
  M  hipd/accessor.c
  M  hipd/blind.c
  M  hipd/bos.c
  M  hipd/cert.c
  M  hipd/close.c
  M  hipd/configfilereader.c
  M  hipd/cookie.c
  M  hipd/dh.c
  M  hipd/dht.c
  M  hipd/dhtqueue.c
  M  hipd/esp_prot_anchordb.c
  M  hipd/esp_prot_hipd_msg.c
  M  hipd/esp_prot_light_update.c
  M  hipd/hadb.c
  M  hipd/hadb_legacy.c
  M  hipd/heartbeat.c
  M  hipd/hi3.c
  M  hipd/hidb.c
  M  hipd/hipd.c
  M  hipd/hiprelay.c
  M  hipd/hit_to_ip.c
  M  hipd/init.c
  M  hipd/input.c
  M  hipd/keymat.c
  M  hipd/maintenance.c
  M  hipd/nat.c
  M  hipd/netdev.c
  M  hipd/nsupdate.c
  M  hipd/oppdb.c
  M  hipd/oppipdb.c
  M  hipd/output.c
  M  hipd/registration.c
  M  hipd/update.c
  M  hipd/update_legacy.c
  M  hipd/user.c
  M  hipd/user_ipsec_hipd_msg.c
  M  hipd/user_ipsec_sadb_api.c
  M  lib/conf/hipconf.c
  M  lib/core/builder.c
  M  lib/core/certtools.c
  M  lib/core/debug.c
  M  lib/core/getendpointinfo.c
  M  lib/core/hashtree.c
  M  lib/core/message.c
  M  lib/core/misc.c
  M  lib/core/utils.c
  M  lib/dht/libhipdht.c
  M  lib/dht/libhipdhtxml.c
  M  lib/opphip/wrap.c
  M  lib/opphip/wrap_db.c
  M  lib/tool/crypto.c
  M  lib/tool/lutil.c
  M  lib/tool/nlink.c
  M  lib/tool/pk.c
  M  lib/tool/xfrmapi.c
  M  test/auth_performance.c
  M  test/certteststub.c
  M  test/conntest-client-hip.c
  M  test/conntest-client-native-user-key.c
  M  test/conntest-client-native.c
  M  test/conntest-client-opp.c
  M  test/conntest-server-native.c
  M  test/conntest-server.c
  M  test/conntest.c
  M  test/cookietest.c
  M  test/dhtteststub.c
  M  test/first_test.c
  M  test/hashtest.c
  M  test/hipsetup.c
  M  test/keygentest.c
  M  test/misc_install.c
  M  tools/pisacert.c

=== modified file 'configure.ac'
--- configure.ac        2010-02-10 00:14:52 +0000
+++ configure.ac        2010-02-11 09:57:04 +0000
@@ -429,7 +429,7 @@
 AC_SUBST(AM_CFLAGS, "-std=c99 -Werror -Wall -Wredundant-decls 
-Wdisabled-optimization -Wundef -Wstrict-prototypes 
-Wno-deprecated-declarations -fno-strict-aliasing -funit-at-a-time 
$OPENWRT_CFLAGS $GPROF_CFLAGS")
 
 # Set the preprocessor flags for the entire project
-AC_SUBST(AM_CPPFLAGS, "-D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=500 
-D_BSD_SOURCE")
+AC_SUBST(AM_CPPFLAGS, "-D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=500")
 
 AC_CONFIG_FILES([ Makefile
                   libinet6/Makefile

=== modified file 'firewall/cache.c'
--- firewall/cache.c    2010-02-10 23:02:52 +0000
+++ firewall/cache.c    2010-02-11 09:57:04 +0000
@@ -11,6 +11,9 @@
  * @author Miika Komu <miika@xxxxxx>
  **/
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "cache.h"
 #include "lib/core/debug.h"
 #include "lib/core/misc.h"

=== modified file 'firewall/cache_port.c'
--- firewall/cache_port.c       2010-02-10 23:02:52 +0000
+++ firewall/cache_port.c       2010-02-11 09:57:04 +0000
@@ -20,6 +20,9 @@
  * @author Miika Komu <miika@xxxxxx>
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "cache_port.h"
 #include "cache.h"
 #include "lib/core/misc.h"

=== modified file 'firewall/common_hipd_msg.c'
--- firewall/common_hipd_msg.c  2010-02-10 23:02:52 +0000
+++ firewall/common_hipd_msg.c  2010-02-11 09:57:04 +0000
@@ -1,3 +1,6 @@
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "common_hipd_msg.h"
 #include "lib/core/ife.h"
 #include "lib/core/debug.h"

=== modified file 'firewall/conntrack.c'
--- firewall/conntrack.c        2010-02-10 23:02:52 +0000
+++ firewall/conntrack.c        2010-02-11 09:57:04 +0000
@@ -14,6 +14,10 @@
  * @author Essi Vehmersalo
  * @author Rene Hummen <rene.hummen@xxxxxxxxxxxxxx>
  **/
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include <stdio.h>
 
 #ifdef HAVE_CONFIG_H

=== modified file 'firewall/datapkt.c'
--- firewall/datapkt.c  2010-02-10 23:02:52 +0000
+++ firewall/datapkt.c  2010-02-11 09:57:04 +0000
@@ -24,6 +24,8 @@
  * @author Prabhu Patil
  **/
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
 
 #ifdef HAVE_CONFIG_H
   #include "config.h"

=== modified file 'firewall/esp_prot_config.c'
--- firewall/esp_prot_config.c  2010-02-10 23:02:52 +0000
+++ firewall/esp_prot_config.c  2010-02-11 09:57:04 +0000
@@ -13,6 +13,9 @@
  *
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "lib/core/debug.h"
 #include "esp_prot_api.h"
 #include "esp_prot_config.h"

=== modified file 'firewall/esp_prot_conntrack.c'
--- firewall/esp_prot_conntrack.c       2010-02-10 23:02:52 +0000
+++ firewall/esp_prot_conntrack.c       2010-02-11 09:57:04 +0000
@@ -12,6 +12,9 @@
  *
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "lib/core/builder.h"
 
 #ifdef HAVE_CONFIG_H

=== modified file 'firewall/esp_prot_fw_msg.c'
--- firewall/esp_prot_fw_msg.c  2010-02-10 23:02:52 +0000
+++ firewall/esp_prot_fw_msg.c  2010-02-11 09:57:04 +0000
@@ -10,6 +10,9 @@
  * @author Rene Hummen <rene.hummen@xxxxxxxxxxxxxx>
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "lib/core/debug.h"
 #include "lib/core/ife.h"
 #include "lib/core/kerncompat.h"

=== modified file 'firewall/firewall.c'
--- firewall/firewall.c 2010-02-10 23:02:52 +0000
+++ firewall/firewall.c 2010-02-11 09:57:04 +0000
@@ -23,6 +23,9 @@
  * @note: HIPU: requires libipq, might need pcap libraries
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include <limits.h> /* INT_MIN, INT_MAX */
 #include <netinet/in.h> /* in_addr, in6_addr */
 #include <linux/netfilter_ipv4.h> /* NF_IP_LOCAL_IN, etc */

=== modified file 'firewall/firewall_control.c'
--- firewall/firewall_control.c 2010-02-10 23:02:52 +0000
+++ firewall/firewall_control.c 2010-02-11 09:57:04 +0000
@@ -11,6 +11,10 @@
  *
  * @author Miika Komu <miika@xxxxxx>
  **/
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'firewall/firewalldb.c'
--- firewall/firewalldb.c       2010-02-10 23:02:52 +0000
+++ firewall/firewalldb.c       2010-02-11 09:57:04 +0000
@@ -11,6 +11,10 @@
  * @author <Put all existing author information here>
  * @author another Author another@xxxxxxxxxx
  **/
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include <netinet/ip_icmp.h>
 #include "firewalldb.h"
 #include "cache.h"

=== modified file 'firewall/lsi.c'
--- firewall/lsi.c      2010-02-10 23:02:52 +0000
+++ firewall/lsi.c      2010-02-11 09:57:04 +0000
@@ -1,3 +1,6 @@
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "cache.h"
 #include "cache_port.h"
 #include "firewall.h"

=== modified file 'firewall/opptcp.c'
--- firewall/opptcp.c   2010-02-10 23:02:52 +0000
+++ firewall/opptcp.c   2010-02-11 09:57:04 +0000
@@ -1,3 +1,6 @@
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "opptcp.h"
 #include "firewalldb.h"
 #include "lib/core/debug.h"

=== modified file 'firewall/proxy.c'
--- firewall/proxy.c    2010-02-10 23:02:52 +0000
+++ firewall/proxy.c    2010-02-11 09:57:04 +0000
@@ -2,6 +2,9 @@
  * HIP proxy
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "firewall/proxy.h"
 #include "firewall/proxyconndb.h"
 #include "firewall/firewall_defines.h"

=== modified file 'firewall/proxyconndb.c'
--- firewall/proxyconndb.c      2010-02-10 23:02:52 +0000
+++ firewall/proxyconndb.c      2010-02-11 09:57:04 +0000
@@ -12,6 +12,10 @@
  *
  * @author Weiwei Hu
  */
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include <sys/types.h>
 #include <unistd.h>
 #include <errno.h>

=== modified file 'firewall/proxydb.c'
--- firewall/proxydb.c  2010-02-10 23:02:52 +0000
+++ firewall/proxydb.c  2010-02-11 09:57:04 +0000
@@ -1,3 +1,6 @@
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "proxydb.h"
 
 HIP_HASHTABLE *hip_proxy_db = NULL;

=== modified file 'firewall/rule_management.c'
--- firewall/rule_management.c  2010-02-10 23:02:52 +0000
+++ firewall/rule_management.c  2010-02-11 09:57:04 +0000
@@ -1,3 +1,6 @@
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include <stdio.h>
 #include <string.h>
 #include <netinet/in.h>

=== modified file 'firewall/sava_api.c'
--- firewall/sava_api.c 2010-02-10 23:02:52 +0000
+++ firewall/sava_api.c 2010-02-11 09:57:04 +0000
@@ -1,3 +1,6 @@
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'firewall/savah_gateway.c'
--- firewall/savah_gateway.c    2010-02-10 23:02:52 +0000
+++ firewall/savah_gateway.c    2010-02-11 09:57:04 +0000
@@ -1,3 +1,6 @@
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include <string.h>
 
 #include "savah_gateway.h"

=== modified file 'firewall/sysopp.c'
--- firewall/sysopp.c   2010-02-10 23:02:52 +0000
+++ firewall/sysopp.c   2010-02-11 09:57:04 +0000
@@ -1,3 +1,6 @@
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "lib/core/debug.h"
 #include "lib/core/builder.h"
 

=== modified file 'firewall/user_ipsec_api.c'
--- firewall/user_ipsec_api.c   2010-02-10 23:02:52 +0000
+++ firewall/user_ipsec_api.c   2010-02-11 09:57:04 +0000
@@ -11,6 +11,9 @@
  *
  **/
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "user_ipsec_api.h"
 #include "user_ipsec_sadb.h"
 #include "user_ipsec_esp.h"

=== modified file 'firewall/user_ipsec_esp.c'
--- firewall/user_ipsec_esp.c   2010-02-10 23:02:52 +0000
+++ firewall/user_ipsec_esp.c   2010-02-11 09:57:04 +0000
@@ -21,6 +21,9 @@
  *
  **/
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include <netinet/ip.h>
 #include <netinet/udp.h>
 #include <openssl/rand.h>

=== modified file 'firewall/user_ipsec_fw_msg.c'
--- firewall/user_ipsec_fw_msg.c        2010-02-10 23:02:52 +0000
+++ firewall/user_ipsec_fw_msg.c        2010-02-11 09:57:04 +0000
@@ -10,6 +10,9 @@
  * @author Rene Hummen <rene.hummen@xxxxxxxxxxxxxx>
  **/
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "esp_prot_fw_msg.h"
 #include "firewall.h"
 #include "lib/core/builder.h"

=== modified file 'firewall/user_ipsec_sadb.c'
--- firewall/user_ipsec_sadb.c  2010-02-10 23:02:52 +0000
+++ firewall/user_ipsec_sadb.c  2010-02-11 09:57:04 +0000
@@ -12,6 +12,9 @@
  *
  **/
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include <pthread.h>
 
 #include "user_ipsec_sadb.h"

=== modified file 'hipd/accessor.c'
--- hipd/accessor.c     2010-02-10 22:32:46 +0000
+++ hipd/accessor.c     2010-02-11 09:57:04 +0000
@@ -10,6 +10,9 @@
  * GNU General Public License for more details.
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'hipd/blind.c'
--- hipd/blind.c        2010-02-10 22:32:46 +0000
+++ hipd/blind.c        2010-02-11 09:57:04 +0000
@@ -5,6 +5,9 @@
  * @note    Distributed under <a 
href="http://www.gnu.org/licenses/gpl2.txt";>GNU/GPL</a>.
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "blind.h"
 
 static int hip_blind_fingerprints(hip_ha_t *entry);

=== modified file 'hipd/bos.c'
--- hipd/bos.c  2010-02-10 22:32:46 +0000
+++ hipd/bos.c  2010-02-11 09:57:04 +0000
@@ -1,3 +1,6 @@
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "bos.h"
 
 /**

=== modified file 'hipd/cert.c'
--- hipd/cert.c 2010-02-10 22:32:46 +0000
+++ hipd/cert.c 2010-02-11 09:57:04 +0000
@@ -3,6 +3,10 @@
  *
  * @author Samu Varjonen
  */
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "cert.h"
 
 /****************************************************************************

=== modified file 'hipd/close.c'
--- hipd/close.c        2010-02-10 22:32:46 +0000
+++ hipd/close.c        2010-02-11 09:57:04 +0000
@@ -1,6 +1,9 @@
 /* TODO: Doxygen documentation incomplete. Please fix
 **/
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'hipd/configfilereader.c'
--- hipd/configfilereader.c     2010-02-10 22:32:46 +0000
+++ hipd/configfilereader.c     2010-02-11 09:57:04 +0000
@@ -5,6 +5,10 @@
  * @note    Distributed under <a 
href="http://www.gnu.org/licenses/gpl2.txt";>GNU/GPL</a>.
  * @see     configfilereader.h for usage instructions.
  */
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "configfilereader.h"
 
 /** Error value for generic config file error. (Everything but -EIO and EOF are

=== modified file 'hipd/cookie.c'
--- hipd/cookie.c       2010-02-10 22:32:46 +0000
+++ hipd/cookie.c       2010-02-11 09:57:04 +0000
@@ -9,6 +9,9 @@
  *
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'hipd/dh.c'
--- hipd/dh.c   2010-02-10 22:32:46 +0000
+++ hipd/dh.c   2010-02-11 09:57:04 +0000
@@ -9,6 +9,9 @@
  * - Tobias Heer <heer@xxxxxxxxxx>
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "dh.h"
 
 DH *dh_table[HIP_MAX_DH_GROUP_ID] = {0};

=== modified file 'hipd/dht.c'
--- hipd/dht.c  2010-02-10 22:32:46 +0000
+++ hipd/dht.c  2010-02-11 09:57:04 +0000
@@ -9,10 +9,13 @@
  *
  * @author: Samu Varjonen <samu.varjonen@xxxxxxx>
  **/
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "dht.h"
 #include "hipd.h"
 
-
 static void hip_publish_hit(char *, char *);
 static int hip_publish_addr(char *);
 static int hip_dht_put_hdrr(unsigned char *, unsigned char *, int, int, void 
*);

=== modified file 'hipd/dhtqueue.c'
--- hipd/dhtqueue.c     2010-02-10 22:32:46 +0000
+++ hipd/dhtqueue.c     2010-02-11 09:57:04 +0000
@@ -5,6 +5,9 @@
  * @note:   Distributed under <a 
href="http://www.gnu.org/licenses/gpl.txt";>GNU/GPL</a>. This is actually a 
singly linked list. -samu
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include <stdlib.h>
 #include "lib/core/hashtable.h"
 #include "lib/core/debug.h"

=== modified file 'hipd/esp_prot_anchordb.c'
--- hipd/esp_prot_anchordb.c    2010-02-10 22:32:46 +0000
+++ hipd/esp_prot_anchordb.c    2010-02-11 09:57:04 +0000
@@ -14,6 +14,9 @@
  *
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "lib/core/esp_prot_common.h"
 #include "lib/core/builder.h"
 #include "esp_prot_anchordb.h"

=== modified file 'hipd/esp_prot_hipd_msg.c'
--- hipd/esp_prot_hipd_msg.c    2010-02-10 22:32:46 +0000
+++ hipd/esp_prot_hipd_msg.c    2010-02-11 09:57:04 +0000
@@ -12,6 +12,9 @@
  *
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "esp_prot_hipd_msg.h"
 #include "esp_prot_anchordb.h"
 #include "esp_prot_light_update.h"

=== modified file 'hipd/esp_prot_light_update.c'
--- hipd/esp_prot_light_update.c        2010-02-10 22:32:46 +0000
+++ hipd/esp_prot_light_update.c        2010-02-11 09:57:04 +0000
@@ -12,6 +12,9 @@
  *
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "esp_prot_light_update.h"
 #include "esp_prot_anchordb.h"
 #include "lib/core/builder.h"

=== modified file 'hipd/hadb.c'
--- hipd/hadb.c 2010-02-10 22:32:46 +0000
+++ hipd/hadb.c 2010-02-11 09:57:04 +0000
@@ -1,5 +1,9 @@
 // FIXME: whenever something that is replicated in beet db is
 // modified, the modifications must be written there too.
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'hipd/hadb_legacy.c'
--- hipd/hadb_legacy.c  2010-02-10 22:32:46 +0000
+++ hipd/hadb_legacy.c  2010-02-11 09:57:04 +0000
@@ -4,6 +4,9 @@
  * base exchange code.
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "hadb_legacy.h"
 
 /**

=== modified file 'hipd/heartbeat.c'
--- hipd/heartbeat.c    2010-02-10 22:32:46 +0000
+++ hipd/heartbeat.c    2010-02-11 09:57:04 +0000
@@ -1,3 +1,6 @@
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "heartbeat.h"
 #include "maintenance.h"
 

=== modified file 'hipd/hi3.c'
--- hipd/hi3.c  2010-02-10 22:32:46 +0000
+++ hipd/hi3.c  2010-02-11 09:57:04 +0000
@@ -1,3 +1,6 @@
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "hi3.h"
 //#include "output.h"
 

=== modified file 'hipd/hidb.c'
--- hipd/hidb.c 2010-02-10 22:32:46 +0000
+++ hipd/hidb.c 2010-02-11 09:57:04 +0000
@@ -8,6 +8,10 @@
  * @author Kristian Slavov <kslavov#hiit.fi>
  * @author Teresa Finez <tfinezmo#hut.tkk.fi>
  */
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'hipd/hipd.c'
--- hipd/hipd.c 2010-02-10 22:32:46 +0000
+++ hipd/hipd.c 2010-02-11 09:57:04 +0000
@@ -6,6 +6,10 @@
  * @note HIPU: libm.a is not availble on OS X. The functions are present in 
libSystem.dyld, though
  * @note HIPU: lcap is used by HIPD. It needs to be changed to generic posix 
functions.
  */
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'hipd/hiprelay.c'
--- hipd/hiprelay.c     2010-02-10 22:32:46 +0000
+++ hipd/hiprelay.c     2010-02-11 09:57:04 +0000
@@ -13,6 +13,10 @@
  * @note    Distributed under <a 
href="http://www.gnu.org/licenses/gpl2.txt";>GNU/GPL</a>.
  * @see     hiprelay.h
  */
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'hipd/hit_to_ip.c'
--- hipd/hit_to_ip.c    2010-02-10 22:32:46 +0000
+++ hipd/hit_to_ip.c    2010-02-11 09:57:04 +0000
@@ -11,6 +11,9 @@
  * @author Oleg Ponomarev <oleg.ponomarev@xxxxxxx>
  **/
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "maintenance.h"
 #include "lib/conf/hipconf.h"
 #include <netinet/in.h>

=== modified file 'hipd/init.c'
--- hipd/init.c 2010-02-10 22:32:46 +0000
+++ hipd/init.c 2010-02-11 09:57:04 +0000
@@ -5,7 +5,8 @@
  * @note    HIPU: BSD platform needs to be autodetected in 
hip_set_lowcapability
  */
 
-
+/* required for s6_addr32 */
+#define _BSD_SOURCE
 
 #include <sys/prctl.h>
 #include <sys/types.h>

=== modified file 'hipd/input.c'
--- hipd/input.c        2010-02-10 22:32:46 +0000
+++ hipd/input.c        2010-02-11 09:57:04 +0000
@@ -14,6 +14,9 @@
  * @author  Samu Varjonen
  * @note    Distributed under <a 
href="http://www.gnu.org/licenses/gpl2.txt";>GNU/GPL</a>.
  */
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'hipd/keymat.c'
--- hipd/keymat.c       2010-02-10 22:32:46 +0000
+++ hipd/keymat.c       2010-02-11 09:57:04 +0000
@@ -9,6 +9,10 @@
  * @author Kristian Slavov <ksl#iki.fi>
  * @author Tobias Heer <heer#tobibox.de>
  */
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "keymat.h"
 
 static u8 *hip_create_keymat_buffer(char *kij, size_t kij_len, size_t hash_len,

=== modified file 'hipd/maintenance.c'
--- hipd/maintenance.c  2010-02-10 22:32:46 +0000
+++ hipd/maintenance.c  2010-02-11 09:57:04 +0000
@@ -10,6 +10,9 @@
  * GNU General Public License for more details.
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'hipd/nat.c'
--- hipd/nat.c  2010-02-10 22:32:46 +0000
+++ hipd/nat.c  2010-02-11 09:57:04 +0000
@@ -23,6 +23,10 @@
  * @note    Distributed under <a 
href="http://www.gnu.org/licenses/gpl2.txt";>GNU/GPL</a>.
  * @note    All Doxygen comments have been added in version 1.1.
  */
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "nat.h"
 #include <string.h>
 #include <stdio.h>

=== modified file 'hipd/netdev.c'
--- hipd/netdev.c       2010-02-10 22:32:46 +0000
+++ hipd/netdev.c       2010-02-11 09:57:04 +0000
@@ -3,6 +3,9 @@
  *
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'hipd/nsupdate.c'
--- hipd/nsupdate.c     2010-02-10 22:32:46 +0000
+++ hipd/nsupdate.c     2010-02-11 09:57:04 +0000
@@ -13,6 +13,9 @@
  * @author Oleg Ponomarev <oleg.ponomarev@xxxxxxx>
  **/
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>

=== modified file 'hipd/oppdb.c'
--- hipd/oppdb.c        2010-02-10 22:32:46 +0000
+++ hipd/oppdb.c        2010-02-11 09:57:04 +0000
@@ -7,6 +7,9 @@
  *
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'hipd/oppipdb.c'
--- hipd/oppipdb.c      2010-02-10 22:32:46 +0000
+++ hipd/oppipdb.c      2010-02-11 09:57:04 +0000
@@ -11,6 +11,9 @@
  * @note    Distributed under <a 
href="http://www.gnu.org/licenses/gpl2.txt";>GNU/GPL</a>.
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'hipd/output.c'
--- hipd/output.c       2010-02-10 22:32:46 +0000
+++ hipd/output.c       2010-02-11 09:57:04 +0000
@@ -10,6 +10,10 @@
  * @author     Rene Hummen
  * @note    Distributed under <a 
href="http://www.gnu.org/licenses/gpl2.txt";>GNU/GPL</a>.
  */
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'hipd/registration.c'
--- hipd/registration.c 2010-02-10 22:32:46 +0000
+++ hipd/registration.c 2010-02-11 09:57:04 +0000
@@ -9,6 +9,10 @@
  * @see     registration.h
  * @see     hiprelay.h
  */
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "registration.h"
 
 /**

=== modified file 'hipd/update.c'
--- hipd/update.c       2010-02-10 22:32:46 +0000
+++ hipd/update.c       2010-02-11 09:57:04 +0000
@@ -10,6 +10,9 @@
  * @note    Distributed under <a 
href="http://www.gnu.org/licenses/gpl2.txt";>GNU/GPL</a>.
  */
 
+/* requiread for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'hipd/update_legacy.c'
--- hipd/update_legacy.c        2010-02-10 22:32:46 +0000
+++ hipd/update_legacy.c        2010-02-11 09:57:04 +0000
@@ -4,6 +4,9 @@
  * base exchange code.
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "update_legacy.h"
 
 int hip_build_locators_old(struct hip_common *msg, uint32_t spi)

=== modified file 'hipd/user.c'
--- hipd/user.c 2010-02-10 22:32:46 +0000
+++ hipd/user.c 2010-02-11 09:57:04 +0000
@@ -12,6 +12,10 @@
  * @author     Rene Hummen
  * @note    Distributed under <a 
href="http://www.gnu.org/licenses/gpl2.txt";>GNU/GPL</a>.
  */
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'hipd/user_ipsec_hipd_msg.c'
--- hipd/user_ipsec_hipd_msg.c  2010-02-10 22:32:46 +0000
+++ hipd/user_ipsec_hipd_msg.c  2010-02-11 09:57:04 +0000
@@ -10,6 +10,9 @@
  * @author Rene Hummen <rene.hummen@xxxxxxxxxxxxxx>
  **/
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "user_ipsec_hipd_msg.h"
 #include "lib/core/builder.h"
 

=== modified file 'hipd/user_ipsec_sadb_api.c'
--- hipd/user_ipsec_sadb_api.c  2010-02-10 22:32:46 +0000
+++ hipd/user_ipsec_sadb_api.c  2010-02-11 09:57:04 +0000
@@ -12,6 +12,9 @@
  *
  **/
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "user_ipsec_sadb_api.h"
 #include "lib/core/esp_prot_common.h"
 #include "user_ipsec_hipd_msg.h"

=== modified file 'lib/conf/hipconf.c'
--- lib/conf/hipconf.c  2010-02-10 22:47:31 +0000
+++ lib/conf/hipconf.c  2010-02-11 09:57:04 +0000
@@ -18,6 +18,10 @@
  * @todo    fix the rst kludges
  * @todo    read the output message from send_msg?
  */
+
+/* required for ifreq */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'lib/core/builder.c'
--- lib/core/builder.c  2010-02-10 23:55:24 +0000
+++ lib/core/builder.c  2010-02-11 09:57:04 +0000
@@ -54,6 +54,10 @@
  * @todo <span style="color:#f00">Update the comments of this file.</span>
  * TODO: The doxygen documentation of this file is incomplete. Please fix.
  */
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include <config.h>
 #endif /* HAVE_CONFIG_H */

=== modified file 'lib/core/certtools.c'
--- lib/core/certtools.c        2010-02-10 23:55:24 +0000
+++ lib/core/certtools.c        2010-02-11 09:57:04 +0000
@@ -3,6 +3,10 @@
  *
  * @author Samu Varjonen
  */
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "certtools.h"
 
 
/*******************************************************************************

=== modified file 'lib/core/debug.c'
--- lib/core/debug.c    2010-02-10 23:55:24 +0000
+++ lib/core/debug.c    2010-02-11 09:57:04 +0000
@@ -43,6 +43,10 @@
  *       be printed as in perror(3). In the rest of the functions, you have to
  *       append a newline (as in fprinf(3)).
  */
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'lib/core/getendpointinfo.c'
--- lib/core/getendpointinfo.c  2010-02-10 23:55:24 +0000
+++ lib/core/getendpointinfo.c  2010-02-11 09:57:04 +0000
@@ -14,6 +14,8 @@
  * - xx
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
 
 #ifdef _USAGI_LIBINET6
 #include "libc-compat.h"

=== modified file 'lib/core/hashtree.c'
--- lib/core/hashtree.c 2010-02-10 23:55:24 +0000
+++ lib/core/hashtree.c 2010-02-11 09:57:04 +0000
@@ -62,7 +62,7 @@
     HIP_IFEL(!(tree = (hash_tree_t *) malloc(sizeof(hash_tree_t))),
              -1,
              "failed to allocate memory\n");
-    bzero(tree, sizeof(hash_tree_t));
+    memset(tree, 0, sizeof(hash_tree_t));
 
     // check here whether leaf_set_size is a power of 2 and compute correct 
value if it is not
     log = log_x(2, num_data_blocks);
@@ -94,8 +94,8 @@
     }
 
     // init array elements to 0
-    bzero(tree->data, max_data_length * tree->leaf_set_size);
-    bzero(tree->nodes, node_length * tree->leaf_set_size * 2);
+    memset(tree->data, 0, max_data_length * tree->leaf_set_size);
+    memset(tree->nodes, 0, node_length * tree->leaf_set_size * 2);
 
     tree->is_open         = 1;
     tree->data_position   = 0;
@@ -126,10 +126,10 @@
                          "failed to add linking root as secrets\n");
             }
 
-            bzero(&tree->secrets[num_data_blocks * secret_length],
+            memset(&tree->secrets[num_data_blocks * secret_length], 0,
                   secret_length * (tree->leaf_set_size - num_data_blocks));
         } else {
-            bzero(tree->secrets, secret_length * tree->leaf_set_size);
+            memset(tree->secrets, 0, secret_length * tree->leaf_set_size);
         }
     }
 

=== modified file 'lib/core/message.c'
--- lib/core/message.c  2010-02-10 23:55:24 +0000
+++ lib/core/message.c  2010-02-11 09:57:04 +0000
@@ -11,6 +11,10 @@
  * @todo    Asynchronous messages should also have a counterpart that receives
  *          a response from kernel.
  */
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "message.h"
 
 /**

=== modified file 'lib/core/misc.c'
--- lib/core/misc.c     2010-02-10 23:55:24 +0000
+++ lib/core/misc.c     2010-02-11 09:57:04 +0000
@@ -7,6 +7,10 @@
  * @note   Distributed under <a 
href="http://www.gnu.org/licenses/gpl2.txt";>GNU/GPL</a>.
  * @see    misc.h
  */
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'lib/core/utils.c'
--- lib/core/utils.c    2010-02-10 23:55:24 +0000
+++ lib/core/utils.c    2010-02-11 09:57:04 +0000
@@ -1,3 +1,7 @@
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "utils.h"
 
 int ipv6_addr_is_hit(const struct in6_addr *hit)

=== modified file 'lib/dht/libhipdht.c'
--- lib/dht/libhipdht.c 2010-02-10 23:13:03 +0000
+++ lib/dht/libhipdht.c 2010-02-11 09:57:04 +0000
@@ -10,6 +10,10 @@
  *
  * @author: Samu Varjonen <samu.varjonen@xxxxxxx>
  **/
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

=== modified file 'lib/dht/libhipdhtxml.c'
--- lib/dht/libhipdhtxml.c      2010-02-10 23:13:03 +0000
+++ lib/dht/libhipdhtxml.c      2010-02-11 09:57:04 +0000
@@ -1,3 +1,6 @@
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

=== modified file 'lib/opphip/wrap.c'
--- lib/opphip/wrap.c   2010-02-11 00:11:39 +0000
+++ lib/opphip/wrap.c   2010-02-11 09:57:04 +0000
@@ -11,6 +11,10 @@
  * @see Miika Komu and Janne Lindqvist, Leap-of-Faith Security is Enough for 
IP Mobility,
  *      6th Annual IEEE Consumer Communications & Networking Conference IEEE 
CCNC 2009, Las Vegas, Nevada, January 2009
  */
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'lib/opphip/wrap_db.c'
--- lib/opphip/wrap_db.c        2010-02-11 00:11:39 +0000
+++ lib/opphip/wrap_db.c        2010-02-11 09:57:04 +0000
@@ -7,6 +7,10 @@
  * <a href="http://www.gnu.org/licenses/gpl2.txt";>GNU/GPL</a>
  *
  */
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'lib/tool/crypto.c'
--- lib/tool/crypto.c   2010-02-11 00:01:07 +0000
+++ lib/tool/crypto.c   2010-02-11 09:57:04 +0000
@@ -29,6 +29,9 @@
  * - "Bad signature r or s size" occurs randomly. This should not happen.
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'lib/tool/lutil.c'
--- lib/tool/lutil.c    2010-02-11 00:01:07 +0000
+++ lib/tool/lutil.c    2010-02-11 09:57:04 +0000
@@ -4,6 +4,10 @@
  * @note    Distributed under
  * <a href="http://www.gnu.org/licenses/gpl2.txt";>GNU/GPL</a>
  */
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "lutil.h"
 #include "lib/conf/hipconf.h"
 

=== modified file 'lib/tool/nlink.c'
--- lib/tool/nlink.c    2010-02-11 00:01:07 +0000
+++ lib/tool/nlink.c    2010-02-11 09:57:04 +0000
@@ -1,3 +1,6 @@
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'lib/tool/pk.c'
--- lib/tool/pk.c       2010-02-11 00:01:07 +0000
+++ lib/tool/pk.c       2010-02-11 09:57:04 +0000
@@ -1,3 +1,6 @@
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'lib/tool/xfrmapi.c'
--- lib/tool/xfrmapi.c  2010-02-11 00:01:07 +0000
+++ lib/tool/xfrmapi.c  2010-02-11 09:57:04 +0000
@@ -1,3 +1,6 @@
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #ifdef HAVE_CONFIG_H
   #include "config.h"
 #endif /* HAVE_CONFIG_H */

=== modified file 'test/auth_performance.c'
--- test/auth_performance.c     2010-02-10 23:43:06 +0000
+++ test/auth_performance.c     2010-02-11 09:57:04 +0000
@@ -1,3 +1,6 @@
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include <stdio.h>              /* printf & co */
 #include <stdlib.h>             /* exit & co */
 #include <unistd.h>

=== modified file 'test/certteststub.c'
--- test/certteststub.c 2010-02-10 23:43:06 +0000
+++ test/certteststub.c 2010-02-11 09:57:04 +0000
@@ -9,6 +9,10 @@
  * @author Samu Varjonen
  *
  */
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include <sys/time.h>
 #include <time.h>
 #include <zlib.h>

=== modified file 'test/conntest-client-hip.c'
--- test/conntest-client-hip.c  2010-02-10 23:43:06 +0000
+++ test/conntest-client-hip.c  2010-02-11 09:57:04 +0000
@@ -5,6 +5,10 @@
  * @author  Lauri Silvennoinen
  * @note    Distributed under <a 
href="http://www.gnu.org/licenses/gpl2.txt";>GNU/GPL</a>.
  */
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #if HAVE_CONFIG_H
 #include <config.h>
 #endif

=== modified file 'test/conntest-client-native-user-key.c'
--- test/conntest-client-native-user-key.c      2010-02-10 23:43:06 +0000
+++ test/conntest-client-native-user-key.c      2010-02-11 09:57:04 +0000
@@ -14,6 +14,9 @@
  * - rewrite/refactor for better modularity
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #if HAVE_CONFIG_H
 #include <config.h>
 #endif

=== modified file 'test/conntest-client-native.c'
--- test/conntest-client-native.c       2010-02-10 23:43:06 +0000
+++ test/conntest-client-native.c       2010-02-11 09:57:04 +0000
@@ -15,6 +15,9 @@
  * @note: HIPU: does not work on MAC OS X
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #if HAVE_CONFIG_H
 #include <config.h>
 #endif

=== modified file 'test/conntest-client-opp.c'
--- test/conntest-client-opp.c  2010-02-10 23:43:06 +0000
+++ test/conntest-client-opp.c  2010-02-11 09:57:04 +0000
@@ -4,6 +4,9 @@
  *
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #if HAVE_CONFIG_H
 #include <config.h>
 #endif

=== modified file 'test/conntest-server-native.c'
--- test/conntest-server-native.c       2010-02-10 23:43:06 +0000
+++ test/conntest-server-native.c       2010-02-11 09:57:04 +0000
@@ -12,6 +12,9 @@
  *
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #if HAVE_CONFIG_H
 #include <config.h>
 #endif

=== modified file 'test/conntest-server.c'
--- test/conntest-server.c      2010-02-10 23:43:06 +0000
+++ test/conntest-server.c      2010-02-11 09:57:04 +0000
@@ -9,6 +9,9 @@
  * - rewrite/refactor for better modularity
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #if HAVE_CONFIG_H
 #include <config.h>
 #endif

=== modified file 'test/conntest.c'
--- test/conntest.c     2010-02-10 23:43:06 +0000
+++ test/conntest.c     2010-02-11 09:57:04 +0000
@@ -1,3 +1,6 @@
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "conntest.h"
 #include "lib/core/getendpointinfo.h"
 

=== modified file 'test/cookietest.c'
--- test/cookietest.c   2010-02-10 23:43:06 +0000
+++ test/cookietest.c   2010-02-11 09:57:04 +0000
@@ -1,3 +1,6 @@
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "lib/core/debug.h"
 #include "lib/core/misc.h"
 #include <sys/time.h>

=== modified file 'test/dhtteststub.c'
--- test/dhtteststub.c  2010-02-10 23:43:06 +0000
+++ test/dhtteststub.c  2010-02-11 09:57:04 +0000
@@ -7,6 +7,10 @@
  *
  * @author Samu Varjonen
  */
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

=== modified file 'test/first_test.c'
--- test/first_test.c   2010-02-10 23:43:06 +0000
+++ test/first_test.c   2010-02-11 09:57:04 +0000
@@ -17,6 +17,9 @@
  *
  */
 
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "first_test.h"
 #include "lib/core/getendpointinfo.h"
 

=== modified file 'test/hashtest.c'
--- test/hashtest.c     2010-02-10 23:43:06 +0000
+++ test/hashtest.c     2010-02-11 09:57:04 +0000
@@ -1,3 +1,6 @@
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

=== modified file 'test/hipsetup.c'
--- test/hipsetup.c     2010-02-10 23:43:06 +0000
+++ test/hipsetup.c     2010-02-11 09:57:04 +0000
@@ -1,3 +1,7 @@
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <unistd.h>

=== modified file 'test/keygentest.c'
--- test/keygentest.c   2010-02-10 23:43:06 +0000
+++ test/keygentest.c   2010-02-11 09:57:04 +0000
@@ -1,3 +1,6 @@
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>

=== modified file 'test/misc_install.c'
--- test/misc_install.c 2010-02-10 23:43:06 +0000
+++ test/misc_install.c 2010-02-11 09:57:04 +0000
@@ -1,3 +1,6 @@
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include "misc_install.h"
 
 int init_daemon()

=== modified file 'tools/pisacert.c'
--- tools/pisacert.c    2010-02-10 23:16:07 +0000
+++ tools/pisacert.c    2010-02-11 09:57:04 +0000
@@ -3,6 +3,10 @@
  *
  * @author Thomas Jansen <mithi@xxxxxxxxx>
  */
+
+/* required for s6_addr32 */
+#define _BSD_SOURCE
+
 #include <sys/time.h>
 #include <time.h>
 #include <zlib.h>

Other related posts:

  • » [hipl-commit] [trunk] Rev 3597: Remove the _BSD_SOURCE feature test macro from global CPPFLAGS. Thus: - Mircea Gherzan