[SCM] Samba Shared Repository - branch master updated -
release-4-0-0alpha7-1818-g3ada1a1
Volker Lendecke
vlendec at samba.org
Tue May 26 21:39:06 GMT 2009
The branch, master has been updated
via 3ada1a19ab1309b0435ee84844b433b06ead0196 (commit)
from dd0506d15ddb01b8f6e7b6be604a3445b73db434 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 3ada1a19ab1309b0435ee84844b433b06ead0196
Author: Volker Lendecke <vl at samba.org>
Date: Tue May 26 23:37:14 2009 +0200
Attempt to fix the build on HP/UX
-----------------------------------------------------------------------
Summary of changes:
source3/configure.in | 2 ++
source3/include/includes.h | 10 ++++++++++
2 files changed, 12 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/configure.in b/source3/configure.in
index 44374b9..f980911 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -2778,6 +2778,8 @@ if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
AC_DEFINE(HAVE_STAT_ST_BLOCKS,1,[Whether the stat struct has a st_block property])
fi
+AC_CHECK_TYPES([blksize_t, blkcnt_t], [], [], [[#include <sys/stat.h>]])
+
AC_CACHE_CHECK([for st_blksize in struct stat],samba_cv_HAVE_STAT_ST_BLKSIZE,[
AC_TRY_COMPILE([#include <sys/types.h>
#include <sys/stat.h>
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 0d66c1c..7bb72be 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.
*/
--
Samba Shared Repository
More information about the samba-cvs
mailing list