nightmaremail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 1a5f99f9b545d78a7c9354f6f10162fb6fd42653
parent 7e89111010ad51dedb0038a052d4991f06e24944
Author: Alan Post <adp@prgmr.com>
Date:   Sat, 24 Aug 2019 07:50:44 -0600

include unistd.h in exit.h to declare _exit.

_exit(2) is declared in unistd.h.  Instead of redeclaring it in
exit.h, include that system header to get the correct function
signature.

Diffstat:
Mexit.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exit.h b/exit.h @@ -1,6 +1,6 @@ #ifndef EXIT_H #define EXIT_H -extern void _exit(); +#include <unistd.h> #endif