Clean up some dummy compatibility implementations.

In particular, sync() was never declared and caused a warning.
This commit is contained in:
Johannes Sixt
2007-11-12 13:00:06 +01:00
parent dbdc65fe2d
commit e0c9a54e11
2 changed files with 3 additions and 7 deletions

View File

@@ -315,10 +315,6 @@ char *mingw_getcwd(char *pointer, int len)
return ret;
}
void sync(void)
{
}
void openlog(const char *ident, int option, int facility)
{
}

View File

@@ -505,9 +505,9 @@ int mingw_socket(int domain, int type, int protocol);
int mingw_rename(const char*, const char*);
#define rename mingw_rename
#define setlinebuf(x)
#define fsync(x) 0
#define getppid() 1
static inline int fsync(int fd) { return 0; }
static inline int getppid(void) { return 1; }
static inline void sync(void) {}
extern void quote_argv(const char **dst, const char **src);
extern const char *parse_interpreter(const char *cmd);