linux/raw.h \
linux/tiocl.h \
linux/version.h \
+ linux/securebits.h \
locale.h \
mntent.h \
net/if.h \
dnl Convert some ac_cv_header_* variables to have_*
dnl
have_linux_raw_h=$ac_cv_header_linux_raw_h
+have_linux_securebits_h=$ac_cv_header_linux_securebits_h
have_linux_watchdog_h=$ac_cv_header_linux_watchdog_h
have_security_pam_misc_h=$ac_cv_header_security_pam_misc_h
)
UL_BUILD_INIT([setpriv])
UL_REQUIRES_LINUX([setpriv])
+UL_REQUIRES_HAVE([setpriv], [linux_securebits_h], [securebits.h header file])
UL_REQUIRES_HAVE([setpriv], [cap_ng], [libcap-ng])
AM_CONDITIONAL(BUILD_SETPRIV, test "x$build_setpriv" = xyes)
switch (flag) {
case SGI_FLAG_BOOT:
- sgilabel->boot_part = sgilabel->boot_part == SSWAP16(i) ? 0 : SSWAP16(i);
+ sgilabel->boot_part =
+ (uint16_t) sgilabel->boot_part == SSWAP16(i) ? 0 : SSWAP16(i);
break;
case SGI_FLAG_SWAP:
- sgilabel->swap_part = sgilabel->swap_part == SSWAP16(i) ? 0 : SSWAP16(i);
+ sgilabel->swap_part =
+ (uint16_t) sgilabel->swap_part == SSWAP16(i) ? 0 : SSWAP16(i);
break;
default:
return 1;