Include stropts.h only if it's available

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@863 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Kolja Waschk 17 years ago
parent 74e58a5646
commit 68d050d6b7

@ -1,5 +1,7 @@
2007-12-18 Kolja Waschk <kawk
* configure.ac, src/tap/parport/*.c: include stropts.h only if
it's available (needed for uClinux and others; thanks Hartley)
* doc/UrJTAG.txt, src/jtag.txt: Cosmetics, Copyright
* src/tap/Makefile.am: include cable driver for USB Blaster and
FT2232-based cables if any of libftdi or ftd2xx is present

@ -34,9 +34,11 @@
#if __CYGWIN__
#include <windows.h>
#else
#include <stropts.h>
#include <linux/ioctl.h>
#endif
#ifdef HAVE_STROPTS_H
#include <stropts.h>
#endif
#include <stdlib.h>
#include <string.h>

@ -29,7 +29,9 @@
#ifdef HAVE_LIBFTDI
#include <fcntl.h>
#ifdef HAVE_STROPTS_H
#include <stropts.h>
#endif
#include <unistd.h>
#include <linux/ioctl.h>

@ -28,7 +28,9 @@
#ifdef HAVE_LINUX_PPDEV_H
#include <fcntl.h>
#ifdef HAVE_STROPTS_H
#include <stropts.h>
#endif
#include <unistd.h>
#include <linux/ppdev.h>
#include <linux/ioctl.h>

@ -32,7 +32,9 @@
#include <linux/ioctl.h>
#include <stdio.h>
#include <string.h>
#ifdef HAVE_STROPTS_H
#include <stropts.h>
#endif
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>

@ -32,7 +32,9 @@
#include <linux/ioctl.h>
#include <stdio.h>
#include <string.h>
#ifdef HAVE_STROPTS_H
#include <stropts.h>
#endif
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>

Loading…
Cancel
Save