[PATCH 3/9] inet.3: Switch to _DEFAULT_SOURCE in the example

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



_BSD_SOURCE has been obsolete for long enough that it seems reasonable
to update the example program to use _DEFAULT_SOURCE instead.

Signed-off-by: Stephen Kitt <steve@xxxxxxx>
---
 man3/inet.3 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man3/inet.3 b/man3/inet.3
index 657fe45e0..47d3ba160 100644
--- a/man3/inet.3
+++ b/man3/inet.3
@@ -305,7 +305,7 @@ Here are some example runs:
 .SS Program source
 \&
 .EX
-#define _BSD_SOURCE
+#define _DEFAULT_SOURCE
 #include <arpa/inet.h>
 #include <stdio.h>
 #include <stdlib.h>
-- 
2.30.2




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux