diff options
author | Guillaume Delacour <gui@iroqwa.org> | 2014-07-23 01:28:29 +0200 |
---|---|---|
committer | Guillaume Delacour <gui@iroqwa.org> | 2014-07-23 01:28:29 +0200 |
commit | fd118a4e0cacae35eca81ca252d41269f416c693 (patch) | |
tree | 2fde2376f502f05ac65651572930730009bdc219 /diskio-unix.cc | |
parent | a920398fa393f9d6301b32b191bc01e086ab8bc8 (diff) | |
download | sgdisk-fd118a4e0cacae35eca81ca252d41269f416c693.tar.gz |
All devices are characters devices on kFreeBSD
Diffstat (limited to 'diskio-unix.cc')
-rw-r--r-- | diskio-unix.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/diskio-unix.cc b/diskio-unix.cc index 388a04d..35032d3 100644 --- a/diskio-unix.cc +++ b/diskio-unix.cc @@ -74,7 +74,8 @@ int DiskIO::OpenForRead(void) { if (fstat64(fd, &st) == 0) { if (S_ISDIR(st.st_mode)) cerr << "The specified path is a directory!\n"; -#if !defined(__FreeBSD__) && !defined(__APPLE__) +#if !(defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) \ + && !defined(__APPLE__) else if (S_ISCHR(st.st_mode)) cerr << "The specified path is a character device!\n"; #endif |