Removed
Link Here
|
1 |
--- lib/blkdev.c.orig 2016-07-30 07:16:42 UTC |
2 |
+++ lib/blkdev.c |
3 |
@@ -133,7 +133,7 @@ blkdev_get_size(int fd, unsigned long lo |
4 |
} |
5 |
#endif /* FDGETPRM */ |
6 |
|
7 |
-#ifdef HAVE_SYS_DISKLABEL_H |
8 |
+#if defined(HAVE_SYS_DISKLABEL_H) && defined(DIOCGDINFO) |
9 |
{ |
10 |
/* |
11 |
* This code works for FreeBSD 4.11 i386, except for the full device |
12 |
@@ -161,7 +161,7 @@ blkdev_get_size(int fd, unsigned long lo |
13 |
} |
14 |
} |
15 |
} |
16 |
-#endif /* HAVE_SYS_DISKLABEL_H */ |
17 |
+#endif /* defined(HAVE_SYS_DISKLABEL_H) && defined(DIOCGDINFO) */ |
18 |
|
19 |
{ |
20 |
struct stat st; |