Hi Klaus. There are some linux/limits.h, but it isn't always used. I think that should be used limits.h instead of linux/limits.h. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - $ grep -r limits.h . ./usr/sbin/pkcsslotd/pkcsslotd.h:#include <linux/limits.h> ./usr/sbin/pkcsslotd/slotd_msg.h:#include <limits.h> ./usr/sbin/pkcsconf/pkcsconf_msg.h:#include <limits.h> ./usr/lib/pkcs11/common/linuxdef.h: #include <limits.h> ./usr/lib/pkcs11/cca_stdll/cca_specific.c:#include <limits.h> ./usr/include/pkcs11/apictl.h:#include <linux/limits.h> ./usr/include/pkcs11/slotmgr.h:#include <linux/limits.h> ./usr/include/pkcs11/stdll.h:#include <linux/limits.h> ./configure.in:AC_CHECK_HEADERS([fcntl.h limits.h strings.h sys/file.h syslog.h unistd.h]) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
So reduce different from other OS like FreeBSD, I made a patch. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -urN opencryptoki-2.3.2.orig/usr/include/pkcs11/apictl.h opencryptoki-2.3.2/usr/include/pkcs11/apictl.h --- opencryptoki-2.3.2.orig/usr/include/pkcs11/apictl.h 2010-07-29 21:28:41.000000000 +0900 +++ opencryptoki-2.3.2/usr/include/pkcs11/apictl.h 2011-01-02 17:55:23.084672626 +0900 @@ -296,7 +296,7 @@ #include <pkcs11types.h> -#include <linux/limits.h> +#include <limits.h> #include <local_types.h> #include <stdll.h> #include <slotmgr.h> diff -urN opencryptoki-2.3.2.orig/usr/include/pkcs11/slotmgr.h opencryptoki-2.3.2/usr/include/pkcs11/slotmgr.h --- opencryptoki-2.3.2.orig/usr/include/pkcs11/slotmgr.h 2010-07-29 21:28:41.000000000 +0900 +++ opencryptoki-2.3.2/usr/include/pkcs11/slotmgr.h 2011-01-02 17:55:30.733673909 +0900 @@ -301,7 +301,7 @@ #include <pkcs11types.h> -#include <linux/limits.h> +#include <limits.h> #include <local_types.h> #include <pthread.h> diff -urN opencryptoki-2.3.2.orig/usr/include/pkcs11/stdll.h opencryptoki-2.3.2/usr/include/pkcs11/stdll.h --- opencryptoki-2.3.2.orig/usr/include/pkcs11/stdll.h 2010-07-29 21:28:41.000000000 +0900 +++ opencryptoki-2.3.2/usr/include/pkcs11/stdll.h 2011-01-02 17:55:26.984673934 +0900 @@ -302,7 +302,7 @@ #include <pkcs11types.h> -#include <linux/limits.h> +#include <limits.h> #include <local_types.h> #include <slotmgr.h> diff -urN opencryptoki-2.3.2.orig/usr/sbin/pkcsslotd/pkcsslotd.h opencryptoki-2.3.2/usr/sbin/pkcsslotd/pkcsslotd.h --- opencryptoki-2.3.2.orig/usr/sbin/pkcsslotd/pkcsslotd.h 2010-07-29 21:28:41.000000000 +0900 +++ opencryptoki-2.3.2/usr/sbin/pkcsslotd/pkcsslotd.h 2011-01-02 17:55:34.391672427 +0900 @@ -353,7 +353,7 @@ #include <nl_types.h> #include <sys/ipc.h> -#include <linux/limits.h> +#include <limits.h> #include <sys/shm.h> #include <sys/stat.h> #include <sys/types.h> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Thank you. -- Norikatsu Shigemura <n...@freebsd.org> ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Opencryptoki-tech mailing list Opencryptoki-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech