diff options
author | Roderick W. Smith <allura@sfs-alluradaemon-3.v29.ch3.sourceforge.com> | 2015-06-19 13:11:26 +0000 |
---|---|---|
committer | Roderick W. Smith <allura@sfs-alluradaemon-3.v29.ch3.sourceforge.com> | 2015-06-19 13:11:26 +0000 |
commit | 90175303379864de3393a9b76a32b01193714f92 (patch) | |
tree | af0acf6dc70682efcbbb4b4707d23762649405e6 /diskio-unix.cc | |
parent | 4ac56ea287c9c6a0cde26cea0e8bb902ce0c3a26 (diff) | |
parent | fd118a4e0cacae35eca81ca252d41269f416c693 (diff) | |
download | sgdisk-90175303379864de3393a9b76a32b01193714f92.tar.gz |
Merge /u/guikcd93/gptfdisk/ branch kfreebsd_character_devices into master
http://sourceforge.net/p/gptfdisk/code/merge-requests/3/
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 7be0bbe..d17fbd3 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 |