1
From: Jeff Epler <jepler@unpythonic.net>
2
Subject: All devices are characters devices on kFreeBSD
3
Last-Update: 2013-07-31
4
Bug-Debian: http://bugs.debian.org/696813
5
Forwarded: https://sourceforge.net/p/gptfdisk/mailman/message/31237858/
10
if (fstat64(fd, &st) == 0) {
11
if (S_ISDIR(st.st_mode))
12
cerr << "The specified path is a directory!\n";
13
-#if !defined(__FreeBSD__) && !defined(__APPLE__)
14
+#if !(defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) \
15
+ && !defined(__APPLE__)
16
else if (S_ISCHR(st.st_mode))
17
cerr << "The specified path is a character device!\n";