summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/utils/dllinit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils/dllinit.c b/src/utils/dllinit.c
index 06fbdccc82..03c07d1521 100644
--- a/src/utils/dllinit.c
+++ b/src/utils/dllinit.c
@@ -1,3 +1,6 @@
+#include <cygwin/version.h>
+#if CYGWIN_VERSION_DLL_MAJOR < 1001
+
/* dllinit.c -- Portable DLL initialization.
Copyright (C) 1998 Free Software Foundation, Inc.
Contributed by Mumit Khan (khan@xraylith.wisc.edu).
@@ -102,3 +105,5 @@ DllMain(
}
return TRUE;
}
+
+#endif /* CYGWIN_VERSION_DLL_MAJOR < 1001 */