summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-02-01 10:51:01 -0800
committerH. Peter Anvin <hpa@zytor.com>2007-02-01 10:51:01 -0800
commit1a1900a2eda610f90180e120e33fa0474f6e84a9 (patch)
treee1d37753319bd59af8b8c104a4832330d156eb33
parent81dc0b0f79bdec8b91574f3ae6782c3e36f20d97 (diff)
downloadsyslinux-1a1900a2eda610f90180e120e33fa0474f6e84a9.tar.gz
Unix FAT installer: #include <sys/ioctl.h>, FAT_IOCTL_SET_ATTRIBUTES
#include <sys/ioctl.h>, and provide a backup definition for FAT_IOCTL_SET_ATTRIBUTES.
-rw-r--r--unix/syslinux.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/unix/syslinux.c b/unix/syslinux.c
index 308e52fd..8f924ad7 100644
--- a/unix/syslinux.c
+++ b/unix/syslinux.c
@@ -46,8 +46,12 @@
#include <sys/wait.h>
#include <sys/mount.h>
+#include <sys/ioctl.h>
#include <linux/fs.h> /* FIGETBSZ, FIBMAP */
#include <linux/msdos_fs.h> /* FAT_IOCTL_SET_ATTRIBUTES, SECTOR_* */
+#ifndef FAT_IOCTL_SET_ATTRIBUTES
+# define FAT_IOCTL_SET_ATTRIBUTES _IOW('r', 0x11, uint32_t)
+#endif
#include "syslinux.h"