Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
i=20339
[fs/lustre-release.git]
/
libcfs
/
include
/
libcfs
/
posix
/
posix-wordsize.h
diff --git
a/libcfs/include/libcfs/posix/posix-wordsize.h
b/libcfs/include/libcfs/posix/posix-wordsize.h
index
e191530
..
f70c3ed
100644
(file)
--- a/
libcfs/include/libcfs/posix/posix-wordsize.h
+++ b/
libcfs/include/libcfs/posix/posix-wordsize.h
@@
-131,6
+131,18
@@
typedef struct {
# define LPF64 "l"
#endif
+#ifdef HAVE_SIZE_T_LONG
+# define LPSZ "%lu"
+#else
+# define LPSZ "%u"
+#endif
+
+#ifdef HAVE_SSIZE_T_LONG
+# define LPSSZ "%ld"
+#else
+# define LPSSZ "%d"
+#endif
+
#ifndef LPU64
# error "No word size defined"
#endif