Mercurial > hg > dhcpcd
changeset 5035:1c7a1389b42b draft
compat: Fix a typo in pidfile when O_CLOEXEC is not defined
While here, include fcntl.h in if.c for older environments.
| author | Petr Gotthard <petr.gotthard@advantech-bb.cz> |
|---|---|
| date | Wed, 05 Feb 2020 15:35:44 +0000 |
| parents | f65873a0ad5b |
| children | f395aac24e9c |
| files | compat/pidfile.c src/if.c |
| diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/compat/pidfile.c Wed Feb 05 14:54:49 2020 +0000 +++ b/compat/pidfile.c Wed Feb 05 15:35:44 2020 +0000 @@ -208,7 +208,7 @@ goto return_pid; #ifndef O_CLOEXEC if ((opts = fcntl(fd, F_GETFD)) == -1 || - fctnl(fd, F_SETFL, opts | FD_CLOEXEC) == -1) + fcntl(fd, F_SETFL, opts | FD_CLOEXEC) == -1) { int error = errno;
