← Commit list

8a1f361716

Viktor Szakats
Viktor Szakats
2026-03-20
SUCCESS Duration: 267s

Subject

build: limit `unitprotos.h` include to `units` target

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

tests/libtest/first.h+0 -4
@@ -43,10 +43,6 @@ extern const struct entry_s s_entries[];
extern int unitfail; /* for unittests */
-#ifdef UNITTESTS
-#include "unitprotos.h"
-#endif
-
#include "curlx/base64.h" /* for curlx_base64* */
#include "curlx/dynbuf.h" /* for curlx_dyn_*() */
#include "curlx/fopen.h" /* for curlx_f*() */
tests/libtest/unitcheck.h+4 -0
@@ -23,6 +23,10 @@
***************************************************************************/
#include "first.h"
+#ifdef BUILDING_LIBCURL
+#include "unitprotos.h"
+#endif
+
/* The fail macros mark the current test step as failed, and continue */
#define fail_if(expr, msg) \
do { \