Package: 4store / 1.1.6+20151109-2

1011_gnu_source.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Subject: use _GNU_SOURCE instead of __USE_MISC
From: Steven Chamberlain <steven@pyro.eu.org>
Date: Sun, 28 Feb 2016 19:39:34 +0000

Defining __USE_MISC directly is forbidden in feature_test_macros(7).

Use _GNU_SOURCE, as other source files do already, which implies
_XOPEN_SOURCE and __USE_MISC.

--- a/src/frontend/filter-datatypes.c
+++ b/src/frontend/filter-datatypes.c
@@ -18,11 +18,11 @@
  *  Copyright (C) 2006 Steve Harris for Garlik
  */
 
-#define _XOPEN_SOURCE
+#define _GNU_SOURCE
+
 #include <stdlib.h>
 #include <string.h>
 #include <math.h>
-#define __USE_MISC
 #include <time.h>
 
 #include "filter.h"