diff options
author | Stanislav Sedov <stas@FreeBSD.org> | 2009-05-04 19:52:34 +0000 |
---|---|---|
committer | Stanislav Sedov <stas@FreeBSD.org> | 2009-05-04 19:52:34 +0000 |
commit | 1fb4f010acb5f3e082cfccbad947b46c57461174 (patch) | |
tree | 5b9c37bf9f070f21c99d5a4a590a572b8e6da705 /devel/libftdi/files/patch-src_ftdi.c | |
parent | - Update to 1.6.1 (diff) |
- Fix libftdi on HEAD by including stdlib.h in ftdi.c. Since HEAD's
version on usb.h doesn't include stdlib.h like libusb does, it fails
to find prototypes for realloc function which leads to incorrect
storage types used and memory corruption as a consequence.
Notes
Notes:
svn path=/head/; revision=233227
Diffstat (limited to 'devel/libftdi/files/patch-src_ftdi.c')
-rw-r--r-- | devel/libftdi/files/patch-src_ftdi.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/devel/libftdi/files/patch-src_ftdi.c b/devel/libftdi/files/patch-src_ftdi.c new file mode 100644 index 000000000000..9a6079fd7cfe --- /dev/null +++ b/devel/libftdi/files/patch-src_ftdi.c @@ -0,0 +1,10 @@ +--- src/ftdi.c.orig 2009-05-04 23:37:26.000000000 +0400 ++++ src/ftdi.c 2009-05-04 23:37:46.000000000 +0400 +@@ -28,6 +28,7 @@ + /** \addtogroup libftdi */ + /* @{ */ + ++#include <stdlib.h> + #include <usb.h> + #include <string.h> + #include <errno.h> |