diff options
Diffstat (limited to 'security/opencryptoki/files/patch-usr-lib-api-apiutil.c')
-rw-r--r-- | security/opencryptoki/files/patch-usr-lib-api-apiutil.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/security/opencryptoki/files/patch-usr-lib-api-apiutil.c b/security/opencryptoki/files/patch-usr-lib-api-apiutil.c index 76d2b849d7fb..32708dbcdfe3 100644 --- a/security/opencryptoki/files/patch-usr-lib-api-apiutil.c +++ b/security/opencryptoki/files/patch-usr-lib-api-apiutil.c @@ -1,22 +1,25 @@ ---- usr/lib/api/apiutil.c.orig 2018-11-16 14:53:03 UTC +--- usr/lib/api/apiutil.c.orig 2022-04-25 11:04:51 UTC +++ usr/lib/api/apiutil.c -@@ -19,10 +19,10 @@ +@@ -19,11 +19,14 @@ #include <string.h> #include <strings.h> #include <unistd.h> --#include <alloca.h> ++#if !defined(__FreeBSD__) + #include <alloca.h> ++#endif #include <dlfcn.h> #include <errno.h> #include <sys/syslog.h> + #include <pthread.h> +#include <limits.h> #include <sys/ipc.h> -@@ -35,7 +35,6 @@ +@@ -36,7 +39,6 @@ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> -#include <sys/file.h> static int xplfd = -1; - + pthread_rwlock_t xplfd_rwlock = PTHREAD_RWLOCK_INITIALIZER; |