summaryrefslogtreecommitdiffstats
path: root/examples
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 /examples
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 'examples')
-rw-r--r--examples/cipher.c1
-rw-r--r--examples/hmac.c1
-rw-r--r--examples/ncr.c1
-rw-r--r--examples/pk.c1
4 files changed, 4 insertions, 0 deletions
diff --git a/examples/cipher.c b/examples/cipher.c
index 1334f02..52b4996 100644
--- a/examples/cipher.c
+++ b/examples/cipher.c
@@ -4,6 +4,7 @@
* Placed under public domain.
*
*/
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
diff --git a/examples/hmac.c b/examples/hmac.c
index 9757f90..c54d741 100644
--- a/examples/hmac.c
+++ b/examples/hmac.c
@@ -4,6 +4,7 @@
* Placed under public domain.
*
*/
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
diff --git a/examples/ncr.c b/examples/ncr.c
index 4231ffa..9a75a99 100644
--- a/examples/ncr.c
+++ b/examples/ncr.c
@@ -4,6 +4,7 @@
* Placed under public domain.
*
*/
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
diff --git a/examples/pk.c b/examples/pk.c
index 69450b1..3102a3b 100644
--- a/examples/pk.c
+++ b/examples/pk.c
@@ -4,6 +4,7 @@
* Placed under public domain.
*
*/
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>