Describe the bug

build redis wih cygwin for windows, failed with "debug.c:1753:5: error: unknown type name ‘Dl_info’ "

Redis [BUG] builld redis with cygwin fail :   debug.c:1753:5: error: unknown type name ‘Dl_info’

To reproduce

  1. cd redis/src
  2. build with "make -j4"
  3. show up $ make -j4 ./mkreleasehdr.sh: line 15: syntax error: unexpected end of file CC debug.o debug.c: In function ‘dumpX86Calls’: debug.c:1753:5: error: unknown type name ‘Dl_info’ 1753 | Dl_info info; | ^~~~~~~ debug.c:1763:13: warning: implicit declaration of function ‘dladdr’; did you mean ‘s_addr’? [-Wimplicit-function-declaration] 1763 | if (dladdr((void*)target, &info) != 0 && info.dli_sname != NULL) { | ^~~~~~ | s_addr Expected behavior

buid success. with : Hint: It's a good idea to run 'make test' ;)

Additional information

for windows , /usr/include/sys/features.h:261: note: this is the location of the previous definition 261 | #define __GNU_VISIBLE 0

__GNU_VISIBLE , should be set to 1 in cygwin

Comment From: madolson

Hello. We officially do not support windows or cygwin, so we don't accept PRs to add compatibility for it.