File: fix-example.patch

package info (click to toggle)
cwdaemon 0.10.2-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,176 kB
  • sloc: sh: 3,873; ansic: 2,425; perl: 1,181; makefile: 66
file content (13 lines) | stat: -rw-r--r-- 360 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
Update use of feature macros for new gcc
Colin Tuckley <colint@debian.org>
--- a/examples/example.c
+++ b/examples/example.c
@@ -29,7 +29,7 @@
  * Usage: 'example' or 'example <portname>'
  */
 
-#define _POSIX_SOURCE /* getaddrinfo() and friends. */
+#define _POSIX_C_SOURCE 201112L /* getaddrinfo() and friends. */
 
 #include <stdlib.h>
 #include <stdio.h>