Fix building c-ares-1.22.0 and higher under Watcom. (#623)

Update config-win32.h to define HAVE_STDINT_H when OpenWatcom is in use.

Fix By: Douglas R. Reno (@renodr)
pull/624/head
Douglas R. Reno 1 year ago committed by GitHub
parent 706d6b6507
commit 6988705f3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Makefile.Watcom
  2. 6
      src/lib/config-win32.h

@ -41,8 +41,8 @@ MD = mkdir
RD = rmdir /q /s 2>NUL
CP = copy
CFLAGS = -3r -mf -hc -zff -zgf -zq -zm -zc -s -fr=con -w2 -fpi -oilrtfm -aa &
-wcd=201 -bt=nt -d+ -dWIN32 -dCARES_BUILDING_LIBRARY &
CFLAGS = -3r -mf -hc -zff -zgf -zq -zm -zc -s -fr=con -w2 -fpi -oilrtfm -aa &
-wcd=201 -bt=nt -d+ -dWIN32 -dCARES_BUILDING_LIBRARY &
-dNTDDI_VERSION=0x06000000 -I. -I.\include -I.\src\lib $(SYS_INCL)
LFLAGS = option quiet, map, caseexact, eliminate

@ -87,6 +87,12 @@
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
/* If we are building with OpenWatcom, we need to specify that we have
* <stdint.h>. */
#if defined(__WATCOMC__)
#define HAVE_STDINT_H
#endif
/* ---------------------------------------------------------------- */
/* OTHER HEADER INFO */
/* ---------------------------------------------------------------- */

Loading…
Cancel
Save