summaryrefslogtreecommitdiff
path: root/lang/J/files/patch-netdefs_netdefs.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/J/files/patch-netdefs_netdefs.c')
-rw-r--r--lang/J/files/patch-netdefs_netdefs.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/lang/J/files/patch-netdefs_netdefs.c b/lang/J/files/patch-netdefs_netdefs.c
index 04cce4878503..cafbfc75f2fc 100644
--- a/lang/J/files/patch-netdefs_netdefs.c
+++ b/lang/J/files/patch-netdefs_netdefs.c
@@ -1,11 +1,11 @@
---- netdefs/netdefs.c.orig 2018-02-22 18:45:28 UTC
+--- netdefs/netdefs.c.orig 2016-11-25 19:04:24 UTC
+++ netdefs/netdefs.c
-@@ -152,7 +152,7 @@ int main(){
- printf ("msg_iov_sz=: " FMTI "\n",sizeof(((struct msghdr*)0)->msg_iov));
- printf ("msg_iovlen_off=: " FMTI "\n",offset(struct msghdr,msg_iovlen));
- printf ("msg_iovlen_sz=: " FMTI "\n",sizeof(((struct msghdr*)0)->msg_iovlen));
+@@ -147,7 +147,7 @@ int main(){
+ printf ("msg_iov_sz=: %d\n",sizeof(((struct msghdr*)0)->msg_iov));
+ printf ("msg_iovlen_off=: %d\n",offset(struct msghdr,msg_iovlen));
+ printf ("msg_iovlen_sz=: %d\n",sizeof(((struct msghdr*)0)->msg_iovlen));
-#if defined(linux) || defined(Darwin)
+#if defined(linux) || defined(Darwin) || defined(__FreeBSD__)
- printf ("msg_control_off=: " FMTI "\n",offset(struct msghdr,msg_control));
- printf ("msg_control_sz=: " FMTI "\n",sizeof(((struct msghdr*)0)->msg_control));
- printf ("msg_controllen_off=: " FMTI "\n",offset(struct msghdr,msg_controllen));
+ printf ("msg_control_off=: %d\n",offset(struct msghdr,msg_control));
+ printf ("msg_control_sz=: %d\n",sizeof(((struct msghdr*)0)->msg_control));
+ printf ("msg_controllen_off=: %d\n",offset(struct msghdr,msg_controllen));