Skip to content

Commit

Permalink
Fix missing include sys/types.h
Browse files Browse the repository at this point in the history
ino_t is provided by <sys/types.h>, see sys_types.h(0p). And therefore
build fails on musl libc and probably other libcs.

	src/sss_client/nss_mc.h:56:5: error: unknown type name 'ino_t';

fixes commit 0344c41 (SSS_CLIENT: check if mem-cache fd was hijacked)
  • Loading branch information
fossdd committed Dec 16, 2024
1 parent 5094a3d commit 64a4a48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sss_client/nss_mc.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <stdbool.h>

Check warning on line 26 in src/sss_client/nss_mc.h

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <stdbool.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <pwd.h>

Check warning on line 27 in src/sss_client/nss_mc.h

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <pwd.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <grp.h>

Check warning on line 28 in src/sss_client/nss_mc.h

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <grp.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <sys/types.h>

Check warning on line 29 in src/sss_client/nss_mc.h

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.

#include "config.h"

Check warning on line 31 in src/sss_client/nss_mc.h

View workflow job for this annotation

GitHub Actions / cppcheck

Include file: "config.h" not found.
#if HAVE_PTHREAD
Expand Down

0 comments on commit 64a4a48

Please sign in to comment.