summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-04-09 11:04:07 -0700
committerJeremy Allison <jra@samba.org>2012-04-09 21:40:40 +0200
commit5701a4d8611ad1e310b76b00b146b0902c9b34ff (patch)
treee73924791ec3c12f796836cd1827cef1561b9a97 /lib
parent5184f41cd8f51fd426bb6b7d6fea657df44dd8a4 (diff)
downloadsamba-5701a4d8611ad1e310b76b00b146b0902c9b34ff.tar.gz
samba-5701a4d8611ad1e310b76b00b146b0902c9b34ff.tar.bz2
samba-5701a4d8611ad1e310b76b00b146b0902c9b34ff.zip
Move blksize_t and blkcnt_t to replace.h from includes.h. Should help with platforms that don't have these.
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Apr 9 21:40:42 CEST 2012 on sn-devel-104
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/README2
-rw-r--r--lib/replace/replace.h8
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/replace/README b/lib/replace/README
index 787ee85812..5399971afe 100644
--- a/lib/replace/README
+++ b/lib/replace/README
@@ -81,6 +81,8 @@ uint{8,16,32,64}_t
int{8,16,32,64}_t
intptr_t
sig_atomic_t
+blksize_t
+blkcnt_t
Constants:
PATH_NAME_MAX
diff --git a/lib/replace/replace.h b/lib/replace/replace.h
index 776da8aa4a..debd4dae3c 100644
--- a/lib/replace/replace.h
+++ b/lib/replace/replace.h
@@ -841,4 +841,12 @@ typedef long useconds_t;
int usleep(useconds_t);
#endif
+#ifndef HAVE_BLKSIZE_T
+typedef long blksize_t;
+#endif
+
+#ifndef HAVE_BLKCNT_T
+typedef long blkcnt_t;
+#endif
+
#endif /* _LIBREPLACE_REPLACE_H */