summaryrefslogtreecommitdiff
path: root/sysutils/diskscrub/patches/patch-configure.ac
blob: 551fe0e3a38d2b8bd378bd5b16fc47557b0b5c78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
$NetBSD: patch-configure.ac,v 1.1 2013/12/11 19:07:47 prlw1 Exp $

- Make unimplemented getsize() function match prototype in getsize.h.
- Use ioctl names (feature tests) rather than OS names.
  XXX for SIOC_CAPACITY consider using SIOC_STORAGE_CAPACITY.
- Implement getsize() based on DIOCGDISKINFO ioctl.

--- configure.ac.orig	2013-12-11 17:23:58.000000000 +0000
+++ configure.ac
@@ -43,7 +43,14 @@ AC_HEADER_STDC
 AC_CHECK_HEADERS( \
   getopt.h \
   stdbool.h \
+  stdint.h \
   pthread.h \
+  linux/fs.h \
+  sys/devinfo.h \
+  sys/disk.h \
+  sys/dkio.h \
+  sys/ioctl.h \
+  sys/scsi.h \
 )
 
 AC_PROG_LIBTOOL
@@ -56,6 +63,12 @@ AC_C_BIGENDIAN
 AC_C_CONST
 
 ##
+# Checks for libraries
+##
+AC_CHECK_LIB(prop, prop_dictionary_recv_ioctl, LIBPROP=-lprop)
+AC_SUBST(LIBPROP)
+
+##
 # Checks for library functions
 ##
 AC_CHECK_FUNCS( \