From: Uwe Hermann Date: Wed, 2 Feb 2011 09:25:52 +0000 (+0100) Subject: Fix build when no libusb-LA is compiled. X-Git-Tag: libsigrokdecode-0.1.0~292 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=17830fe1a2445c109761a5f50aa9f6d665157cd0;p=libsigrokdecode.git Fix build when no libusb-LA is compiled. Until now the build would break if the user doesn't enable at least one of the libusb1.0-based LAs. I.e., you could not compile only OLS, or only the demo driver. --- diff --git a/decode.c b/decode.c index a6366b1..9f8c034 100644 --- a/decode.c +++ b/decode.c @@ -18,11 +18,11 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "config.h" #include /* First, so we avoid a _POSIX_C_SOURCE warning. */ #include #include #include -#include /* Re-define some string functions for Python >= 3.0. */ #if PY_VERSION_HEX >= 0x03000000