ocaml-usb (1.2.0-2) 0002-Include-stdint.h-before-libusb.h.patch

Summary

 src/usb_stubs.c |    1 +
 1 file changed, 1 insertion(+)

    
download this patch

Patch contents

From: Stephane Glondu <steph@glondu.net>
Date: Sat, 2 Jul 2011 12:16:03 +0200
Subject: Include stdint.h before libusb.h

Fixes FTBFS on kfreebsd-*.
---
 src/usb_stubs.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/usb_stubs.c b/src/usb_stubs.c
index a072c7f..c6a3a38 100644
--- a/src/usb_stubs.c
+++ b/src/usb_stubs.c
@@ -14,6 +14,7 @@
 #include <caml/fail.h>
 #include <caml/callback.h>
 #include <caml/signals.h>
+#include <stdint.h>
 #include <libusb.h>
 #include <poll.h>
 #include <string.h>
--