diff options
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h index 2be13891c..04bf6a5cd 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -502,7 +502,7 @@ int execable_file(const char *name); | |||
502 | char *find_execable(const char *filename); | 502 | char *find_execable(const char *filename); |
503 | int exists_execable(const char *filename); | 503 | int exists_execable(const char *filename); |
504 | 504 | ||
505 | #if ENABLE_FEATURE_EXEC_PREFER_APPLETS | 505 | #if ENABLE_FEATURE_PREFER_APPLETS |
506 | int bb_execvp(const char *file, char *const argv[]); | 506 | int bb_execvp(const char *file, char *const argv[]); |
507 | #define BB_EXECVP(prog,cmd) bb_execvp(prog,cmd) | 507 | #define BB_EXECVP(prog,cmd) bb_execvp(prog,cmd) |
508 | #define BB_EXECLP(prog,cmd,...) \ | 508 | #define BB_EXECLP(prog,cmd,...) \ |
@@ -609,7 +609,8 @@ llist_t *llist_rev(llist_t *list); | |||
609 | int write_pidfile(const char *path); | 609 | int write_pidfile(const char *path); |
610 | #define remove_pidfile(f) ((void)unlink(f)) | 610 | #define remove_pidfile(f) ((void)unlink(f)) |
611 | #else | 611 | #else |
612 | #define write_pidfile(f) TRUE | 612 | /* Why? #defining it to 1 gives "warning: statement with no effect"... */ |
613 | static ATTRIBUTE_ALWAYS_INLINE int write_pidfile(const char *path) { return 1; } | ||
613 | #define remove_pidfile(f) ((void)0) | 614 | #define remove_pidfile(f) ((void)0) |
614 | #endif | 615 | #endif |
615 | 616 | ||