summaryrefslogtreecommitdiffstats
path: root/userspace
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-08-08 02:03:13 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-08-08 02:18:53 +0200
commitf28aa3e7b3a1cd96f5e6449e3793561409f1ac94 (patch)
tree8c701dfb9f59cf81dc93feb48ab37c6db7bd6b3a /userspace
parentcb519ef9fc39d3ccb1272ec7685524443490ca54 (diff)
downloadcryptodev-linux-f28aa3e7b3a1cd96f5e6449e3793561409f1ac94.tar.gz
cryptodev-linux-f28aa3e7b3a1cd96f5e6449e3793561409f1ac94.tar.xz
cryptodev-linux-f28aa3e7b3a1cd96f5e6449e3793561409f1ac94.zip
Use types from <linux/types.h> for public headers.
When included in the kernel tree, <inttypes.h> is not available, so <linux/types.h> has to be used. <linux/types.h> does not provide the uintNN_t and size_t types when installed to /usr/include/linux (package kernel-headers on Fedora). Therefore, use the types from <linux/types.h> that are available in userspace. Also fix user-space users of the headers not to assume that they provide the <stdint.h> types.
Diffstat (limited to 'userspace')
-rw-r--r--userspace/setkey.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/userspace/setkey.c b/userspace/setkey.c
index ea9d30e..b090bd5 100644
--- a/userspace/setkey.c
+++ b/userspace/setkey.c
@@ -4,6 +4,7 @@
* Placed under public domain.
*
*/
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>