d0f34f93ffdf10bdcf00d9be1610d942b68cdecd
[openwrt.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>