Skip to content

Commit 3f331d9

Browse files
author
Martin Preisler
committed
Added config.h to test C source files that didn't have it
1 parent 110825f commit 3f331d9

File tree

8 files changed

+32
-0
lines changed

8 files changed

+32
-0
lines changed

tests/API/CVE/test_api_cve.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifdef HAVE_CONFIG_H
2+
#include <config.h>
3+
#endif
14

25
#include <stdio.h>
36
#include <string.h>

tests/API/CVRF/test_api_cvrf.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1818
*
1919
*/
20+
21+
#ifdef HAVE_CONFIG_H
22+
#include <config.h>
23+
#endif
24+
2025
#include <stdio.h>
2126
#include <string.h>
2227
#include <cvss_score.h>

tests/API/OVAL/schema_version/test_schema_version.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
* "Jan Černý" <[email protected]>
2121
*/
2222

23+
#ifdef HAVE_CONFIG_H
24+
#include <config.h>
25+
#endif
26+
2327
#include <stdio.h>
2428
#include <stdlib.h>
2529
#include "OVAL/public/oval_schema_version.h"

tests/API/XCCDF/unittests/test_oscap_common.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
* Simon Lukasik <[email protected]>
2121
*/
2222

23+
#ifdef HAVE_CONFIG_H
24+
#include <config.h>
25+
#endif
26+
2327
#include <stdio.h>
2428
#include <string.h>
2529
#include "common/list.h"

tests/API/XCCDF/unittests/test_xccdf_overrides.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
* Simon Lukasik <[email protected]>
2121
*/
2222

23+
#ifdef HAVE_CONFIG_H
24+
#include <config.h>
25+
#endif
26+
2327
#include <stdio.h>
2428

2529
#include <ds_rds_session.h>

tests/API/XCCDF/unittests/test_xccdf_shall_pass.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
* Simon Lukasik <[email protected]>
2121
*/
2222

23+
#ifdef HAVE_CONFIG_H
24+
#include <config.h>
25+
#endif
26+
2327
#include <stdio.h>
2428

2529
#include <xccdf_benchmark.h>

tests/API/XCCDF/unittests/unit_helper.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
* Simon Lukasik <[email protected]>
2121
*/
2222

23+
#ifdef HAVE_CONFIG_H
24+
#include <config.h>
25+
#endif
26+
2327
#include "unit_helper.h"
2428
#include <xccdf_benchmark.h>
2529
#include <oval_agent_xccdf_api.h>

tests/bz2/test_bz2_memory_source.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
* Simon Lukasik <[email protected]>
2121
*/
2222

23+
#ifdef HAVE_CONFIG_H
24+
#include <config.h>
25+
#endif
26+
2327
#include <stdio.h>
2428
#include <string.h>
2529
#include <oscap_error.h>

0 commit comments

Comments
 (0)