https://bugs.winehq.org/show_bug.cgi?id=53930
--- Comment #2 from Martin Storsjö martin@martin.st --- (In reply to Hans Leidekker from comment #1)
Looks like we don't actually need that header. That is, the fallback to getopt-compat.h to seems to be sufficient here. Does the build succeed if you remove the define?
I tried that, but getopt-compat.h isn't included among the minimal set of openldap sources imported in the tree. (I didn't try to go find that file yet.)