summaryrefslogtreecommitdiffstats
path: root/cpukit/shttpd
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2007-07-24 04:06:32 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2007-07-24 04:06:32 +0000
commit69079e0a81009a4fdfb628dd701f2a1fd5d08c4b (patch)
tree4689598e927806dd3a0d8d008fcd10a625bf5239 /cpukit/shttpd
parentDon't build my_stat for rtems. (diff)
downloadrtems-69079e0a81009a4fdfb628dd701f2a1fd5d08c4b.tar.bz2
Don't build most of my_* wrappers for rtems.
Diffstat (limited to 'cpukit/shttpd')
-rw-r--r--cpukit/shttpd/defs.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/shttpd/defs.h b/cpukit/shttpd/defs.h
index 7a86992bbe..fef5ecefc4 100644
--- a/cpukit/shttpd/defs.h
+++ b/cpukit/shttpd/defs.h
@@ -414,12 +414,21 @@ extern int my_snprintf(char *buf, size_t buflen, const char *fmt, ...);
*/
extern void set_close_on_exec(int fd);
extern int set_non_blocking_mode(int fd);
+#if __rtems__
+#define my_stat stat
+#define my_open open
+#define my_remove remove
+#define my_rename rename
+#define my_mkdir mkdir
+#define my_getcwd getcwd
+#else
extern int my_stat(const char *, struct stat *stp);
extern int my_open(const char *, int flags, int mode);
extern int my_remove(const char *);
extern int my_rename(const char *, const char *);
extern int my_mkdir(const char *, int);
extern char * my_getcwd(char *, int);
+#endif
extern int spawn_process(struct conn *c, const char *prog,
char *envblk, char *envp[], int sock, const char *dir);