From 68d050d6b72272b0a9cbcd528896bbef8c79bb2b Mon Sep 17 00:00:00 2001 From: Kolja Waschk Date: Tue, 18 Dec 2007 19:33:33 +0000 Subject: [PATCH] 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 --- jtag/ChangeLog | 2 ++ jtag/src/tap/parport/ftd2xx.c | 4 +++- jtag/src/tap/parport/ftdi.c | 2 ++ jtag/src/tap/parport/ppdev.c | 2 ++ jtag/src/tap/parport/xpcu_common.c | 2 ++ jtag/src/tap/parport/xpcu_pp.c | 2 ++ 6 files changed, 13 insertions(+), 1 deletion(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 11044cfa..1dc0d1c7 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,5 +1,7 @@ 2007-12-18 Kolja Waschk #else -#include #include #endif +#ifdef HAVE_STROPTS_H +#include +#endif #include #include diff --git a/jtag/src/tap/parport/ftdi.c b/jtag/src/tap/parport/ftdi.c index 2766f40f..386f263c 100644 --- a/jtag/src/tap/parport/ftdi.c +++ b/jtag/src/tap/parport/ftdi.c @@ -29,7 +29,9 @@ #ifdef HAVE_LIBFTDI #include +#ifdef HAVE_STROPTS_H #include +#endif #include #include diff --git a/jtag/src/tap/parport/ppdev.c b/jtag/src/tap/parport/ppdev.c index 88d16def..6df2dfef 100644 --- a/jtag/src/tap/parport/ppdev.c +++ b/jtag/src/tap/parport/ppdev.c @@ -28,7 +28,9 @@ #ifdef HAVE_LINUX_PPDEV_H #include +#ifdef HAVE_STROPTS_H #include +#endif #include #include #include diff --git a/jtag/src/tap/parport/xpcu_common.c b/jtag/src/tap/parport/xpcu_common.c index 27edc424..f410257f 100644 --- a/jtag/src/tap/parport/xpcu_common.c +++ b/jtag/src/tap/parport/xpcu_common.c @@ -32,7 +32,9 @@ #include #include #include +#ifdef HAVE_STROPTS_H #include +#endif #include #include #include diff --git a/jtag/src/tap/parport/xpcu_pp.c b/jtag/src/tap/parport/xpcu_pp.c index 44383c22..9513cc50 100644 --- a/jtag/src/tap/parport/xpcu_pp.c +++ b/jtag/src/tap/parport/xpcu_pp.c @@ -32,7 +32,9 @@ #include #include #include +#ifdef HAVE_STROPTS_H #include +#endif #include #include #include