diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2016-12-17 01:51:33 +0100 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2016-12-17 01:51:33 +0100 |
commit | 430930537cf483847419bcfacce00ff3f75b8db8 (patch) | |
tree | db8e303c5c948c86ddf0ecfdbe14a96d99e4ae9a /src/disk.c | |
parent | 7522a9fbc72f14c5cb7fbaa54fb57526c5221d85 (diff) | |
download | 0xFFFF-430930537cf483847419bcfacce00ff3f75b8db8.tar.bz2 |
all: Use #include <sys/sysmacros.h> for major() instead #define _BSD_SOURCE
Diffstat (limited to 'src/disk.c')
-rw-r--r-- | src/disk.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -16,12 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifdef __linux__ -#ifndef _BSD_SOURCE -#define _BSD_SOURCE -#endif -#endif - #include <fcntl.h> #include <libgen.h> #include <unistd.h> @@ -32,6 +26,7 @@ #include <sys/statvfs.h> #ifdef __linux__ +#include <sys/sysmacros.h> #include <sys/ioctl.h> #include <linux/fs.h> #include <dirent.h> |