Merge pull request #1135 from borneoa/riscv

Move FD_SETSIZE to configure.ac
This commit is contained in:
Evgeniy Naydanov 2024-09-26 12:30:19 +03:00 committed by GitHub
commit f3302653a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 5 deletions

View File

@ -37,15 +37,13 @@ DISTCLEANFILES += jimtcl/jsmn/jsmn.o
endif endif
# common flags used in openocd build # common flags used in openocd build
AM_CFLAGS = $(GCC_WARNINGS)\ AM_CFLAGS = $(GCC_WARNINGS)
-DFD_SETSIZE=128
AM_CPPFLAGS = $(HOST_CPPFLAGS)\ AM_CPPFLAGS = $(HOST_CPPFLAGS)\
-I$(top_srcdir)/src \ -I$(top_srcdir)/src \
-I$(top_builddir)/src \ -I$(top_builddir)/src \
-DPKGDATADIR=\"$(pkgdatadir)\" \ -DPKGDATADIR=\"$(pkgdatadir)\" \
-DBINDIR=\"$(bindir)\"\ -DBINDIR=\"$(bindir)\"
-DFD_SETSIZE=128
if INTERNAL_JIMTCL if INTERNAL_JIMTCL
AM_CPPFLAGS += -I$(top_srcdir)/jimtcl \ AM_CPPFLAGS += -I$(top_srcdir)/jimtcl \

View File

@ -436,7 +436,7 @@ AS_CASE([$host],
# In case enable_buspirate=auto, make sure it will not be built. # In case enable_buspirate=auto, make sure it will not be built.
enable_buspirate=no enable_buspirate=no
AC_SUBST([HOST_CPPFLAGS], [-D__USE_MINGW_ANSI_STDIO]) AC_SUBST([HOST_CPPFLAGS], ["-D__USE_MINGW_ANSI_STDIO -DFD_SETSIZE=128"])
], ],
[*darwin*], [ [*darwin*], [
is_darwin=yes is_darwin=yes