Skip to content

Commit 644333c

Browse files
committed
Fix -Wunused-function warning
1 parent d22d5ff commit 644333c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/libast/comp/spawnveg.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ spawnveg_fast(const char* path, char* const argv[], char* const envv[], pid_t pg
273273
#define _fast_spawnveg 0
274274
#endif /* _lib_posix_spawn */
275275

276+
#if !_lib_clone
277+
276278
#if _lib_spawnve && _hdr_process
277279
#include <process.h>
278280
#if defined(P_NOWAIT) || defined(_P_NOWAIT)
@@ -352,6 +354,7 @@ spawnveg_slow(const char* path, char* const argv[], char* const envv[], pid_t pg
352354
return pid;
353355
}
354356

357+
#endif /* !_lib_clone */
355358

356359
pid_t
357360
spawnveg(const char* path, char* const argv[], char* const envv[], pid_t pgid, int tcfd)

0 commit comments

Comments
 (0)