Skip to content

Commit

Permalink
add missing libgen include
Browse files Browse the repository at this point in the history
Without including libgen.h, build will fail on darwin as basename isn't declared.

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
  • Loading branch information
katexochen committed Jan 31, 2024
1 parent 4501da6 commit cbab73a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions runalarm.c
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
#define _GNU_SOURCE /* basename */

#include <errno.h>
#include <libgen.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
1 change: 1 addition & 0 deletions runlock.c
Expand Up @@ -18,6 +18,7 @@ limitations under the License.

#include <errno.h>
#include <fcntl.h>
#include <libgen.h>
#include <limits.h>
#include <signal.h>
#include <stdio.h>
Expand Down

0 comments on commit cbab73a

Please sign in to comment.