summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-05-26 23:37:14 +0200
committerVolker Lendecke <vl@samba.org>2009-05-26 23:38:22 +0200
commit3ada1a19ab1309b0435ee84844b433b06ead0196 (patch)
tree8b282796d82e3945febb0effb364323154047fbf /source3/include
parentdd0506d15ddb01b8f6e7b6be604a3445b73db434 (diff)
downloadsamba-3ada1a19ab1309b0435ee84844b433b06ead0196.tar.gz
samba-3ada1a19ab1309b0435ee84844b433b06ead0196.tar.bz2
samba-3ada1a19ab1309b0435ee84844b433b06ead0196.zip
Attempt to fix the build on HP/UX
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/includes.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 0d66c1cd6b..7bb72be692 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -431,6 +431,16 @@ typedef uint64_t br_off;
#define IVAL_TO_SMB_OFF_T(buf,off) ((SMB_OFF_T)(( ((uint32)(IVAL((buf),(off)))) & 0xFFFFFFFF )))
#endif
+#ifndef HAVE_BLKSIZE_T
+/* This is mainly for HP/UX which defines st_blksize as long */
+typedef blksize_t long;
+#endif
+
+#ifndef HAVE_BLKCNT_T
+/* This is mainly for HP/UX which doesn't have blkcnt_t */
+typedef blkcnt_t long;
+#endif
+
/*
* Type for stat structure.
*/