X-Git-Url: https://ruderich.org/simon/gitweb/?p=coloredstderr%2Fcoloredstderr.git;a=blobdiff_plain;f=src%2Fcoloredstderr.c;h=c1522186592a91bbfece42a510c5e77018d9257b;hp=9ade423a4ed99c78000ab2a22de623ab5476074b;hb=7c5d6fce3a6f52243948e3eae452acb968d78469;hpb=66fb589680db241e916b7f7f43d9e6058dcdb571 diff --git a/src/coloredstderr.c b/src/coloredstderr.c index 9ade423..c152218 100644 --- a/src/coloredstderr.c +++ b/src/coloredstderr.c @@ -330,6 +330,7 @@ int fclose(FILE *fp) { /* Hook functions which are necessary for correct tracking. */ +#if defined(HAVE_VFORK) && defined(HAVE_FORK) pid_t vfork(void) { /* vfork() is similar to fork() but the address space is shared between * father and child. It's designed for fork()/exec() usage because it's @@ -344,3 +345,4 @@ pid_t vfork(void) { * most systems use copy-on-write anyway not a performance issue. */ return fork(); } +#endif