odhcp6c: avoid integer overflows in resend logic
[openwrt/svn-archive/archive.git] / package / devel / trace-cmd / patches / 100-compile_fix.patch
1 --- a/trace-listen.c
2 +++ b/trace-listen.c
3 @@ -17,6 +17,7 @@
4 *
5 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 */
7 +#define _GNU_SOURCE
8 #define _LARGEFILE64_SOURCE
9 #include <dirent.h>
10 #include <stdio.h>
11 --- a/trace-record.c
12 +++ b/trace-record.c
13 @@ -17,6 +17,7 @@
14 *
15 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16 */
17 +#define _GNU_SOURCE
18 #include <dirent.h>
19 #include <stdio.h>
20 #include <stdlib.h>