[PATCH] strptime.3: add #define to example to avoid implicit declaration of strptime

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

 



The example doesn't follow the guidelines given in the description and will
result in the following warning if compiled :

  In function 'main':
  13: warning: implicit declaration of function 'strptime'

Carlo
---
diff -urp man-pages-2.74/man3/strptime.3 man-pages-2.74/man3/strptime.3
--- man-pages-2.74/man3/strptime.3	2007-12-20 04:13:45.000000000 -0800
+++ man-pages-2.74/man3/strptime.3	2008-01-05 18:46:04.000000000 -0800
@@ -384,6 +384,7 @@ and
 .BR strftime (3).
 .sp
 .nf
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
 #include <time.h>
-
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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