summaryrefslogtreecommitdiff
path: root/include/tests.h
diff options
context:
space:
mode:
authorJim Warner <james.warner@comcast.net>2020-08-15 11:11:11 -0500
committerCraig Small <csmall@dropbear.xyz>2020-08-17 21:49:08 +1000
commit2c891196683816585d9a4b9ae148f671299bbc1e (patch)
tree73eaa9f2861a2f0ae1ffc1695ece157436eadc29 /include/tests.h
parentebb57668a18fb2653177019d6761fffa80a497f0 (diff)
downloadprocps-ng-2c891196683816585d9a4b9ae148f671299bbc1e.tar.gz
build-sys: fix some important 'tests.h' related issues
Exploiting a header file shouldn't also force users to code their own '#include <stdio.h>'. More importantly, unless this header is mentioned in dist_noinst_HEADERS we'd fail 'make distcheck' with the error shown below. [ the same error will apply to all 'noinst_PROGRAMS' ] [ that happen to use this header. but please, do not ] [ ask me to explain exactly why or how my fix works! ] Reference(s): ../../proc/test_pids.c:24:10: fatal error: tests.h: No such file or directory 24 | #include "tests.h" | ^~~~~~~~~ Signed-off-by: Jim Warner <james.warner@comcast.net>
Diffstat (limited to 'include/tests.h')
-rw-r--r--include/tests.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tests.h b/include/tests.h
index 1774f52..324cc22 100644
--- a/include/tests.h
+++ b/include/tests.h
@@ -2,6 +2,8 @@
#ifndef PROCPS_NG_TESTS_H
#define PROCPS_NG_TESTS_H
+#include <stdio.h>
+
typedef int (*TestFunction)(void *data);
char *testname;