Skip to content

Commit

Permalink
chore(platform): Remove Cygwin support.
Browse files Browse the repository at this point in the history
As the Windows Subsystem for Linux is now mature,
we no longer need to implement workarounds for its support.
  • Loading branch information
holishing committed Dec 18, 2023
1 parent 2eccf27 commit 74296c0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,7 @@ elseif(DEFINED NO_SO)
set(NO_SO_CLI "${NO_SO}")
endif()

if(CYGWIN)
set(NO_SO ON)
elseif(DEFINED NO_SO_CLI)
if(DEFINED NO_SO_CLI)
set(NO_SO "${NO_SO_CLI}")
else()
LOADVALUE(NO_SO OFF ${EXPORT_MAPLE} NO_SO)
Expand Down
4 changes: 0 additions & 4 deletions dreambbs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,6 @@ LDFLAGS_ARCHI += -lresolv -ldl -rdynamic
LDFLAGS_ARCHI += -Wl,-export-dynamic
.endif

.if $(OPSYS) == "Cygwin"
NO_SO = YES
.endif

.if $(NO_SO)
CFLAGS_MAPLE += -DNO_SO
CFLAGS_SO += -DNO_SO
Expand Down
3 changes: 1 addition & 2 deletions include/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,7 @@
/* 其他系統上限參數 */
/* ----------------------------------------------------- */

//#define RLIMIT /* r2.20180430: Cygwin does not accept rlimit related functions */
/* r2.20180430: please define it on your own if needed */
#define RLIMIT

#ifdef HAVE_PIP_FIGHT1
#define PIP_MAX 16
Expand Down
2 changes: 0 additions & 2 deletions innbbsd/rec_article.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,8 @@ static void
ptime.tm_mday = atoi(mday_start);
ptime.tm_mon = i;
ptime.tm_isdst = 0;
#ifndef __CYGWIN__
ptime.tm_zone = "GMT";
ptime.tm_gmtoff = 0;
#endif

datevalue = mktime(&ptime);
/* 如果有 +0100 或 -1000 等註明時區,先調回 GMT 時區 */
Expand Down

0 comments on commit 74296c0

Please sign in to comment.