diff --git a/legacy/evil/ChangeLog b/legacy/evil/ChangeLog index b9f6303949..27f5a0cf99 100644 --- a/legacy/evil/ChangeLog +++ b/legacy/evil/ChangeLog @@ -1,3 +1,10 @@ +2009-04-11 Vincent Torri + + * src/lib/evil_fcntl.c: + * src/lib/evil_fcntl.h: + support of F_GETFD in fcntl() (does nothing, actually + needed for last ecore change) + 2009-04-08 Vincent Torri * src/lib/evil_stdlib.c: diff --git a/legacy/evil/src/lib/evil_fcntl.c b/legacy/evil/src/lib/evil_fcntl.c index 1863e0416d..05f920ba56 100644 --- a/legacy/evil/src/lib/evil_fcntl.c +++ b/legacy/evil/src/lib/evil_fcntl.c @@ -40,6 +40,18 @@ int fcntl(int fd, int cmd, ...) if (h == INVALID_HANDLE_VALUE) return -1; + if (cmd == F_GETFD) + { +#if ! ( defined(__CEGCC__) || defined(__MINGW32CE__) ) + DWORD flag; + + if (!GetHandleInformation(h, &flag)) + return -1; + + res = 0; +#endif /* __CEGCC__ || __MINGW32CE__ */ + } + if (cmd == F_SETFD) { long flag; diff --git a/legacy/evil/src/lib/evil_fcntl.h b/legacy/evil/src/lib/evil_fcntl.h index cedeffb6e8..83cd08d802 100644 --- a/legacy/evil/src/lib/evil_fcntl.h +++ b/legacy/evil/src/lib/evil_fcntl.h @@ -32,6 +32,7 @@ * can be satisfied. */ +# define F_GETFD 1 # define F_SETFD 2 # define F_SETLK 6 # define F_SETLKW 7