To omit it from `tunits`.
Also: move the include to `unitcheck.h` to save a guard.
Ref: https://github.com/curl/curl/pull/21014#issuecomment-
4093742896
Reported-by: Daniel Stenberg
Fixes #21021
Follow-up to
98d8e82c7471232639841eb63e16bb979a30acb4 #21014
Closes #21024
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*() */
***************************************************************************/
#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 { \