changeset 1791:79abc4aecdb7

* include/tftp_support.h: Use the definitions of O_RDONLY and O_WRONLY from fcntl.h instead of defining them ourselves.
author asl
date Tue, 05 Oct 2004 08:04:04 +0000
parents 8fa2d8cf7d1b
children 435babd3f38e
files packages/net/common/current/ChangeLog packages/net/common/current/include/tftp_support.h
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/packages/net/common/current/ChangeLog
+++ b/packages/net/common/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-04  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* include/tftp_support.h: Use the definitions of O_RDONLY and
+	O_WRONLY from fcntl.h instead of defining them ourselves. 
+
 2004-06-17  Oyvind Harboe  <oyvind.harboe@zylin.com>
 
 	* src/tftp_server.c:
--- a/packages/net/common/current/include/tftp_support.h
+++ b/packages/net/common/current/include/tftp_support.h
@@ -32,6 +32,7 @@
 #ifndef _TFTP_SUPPORT_H_
 #define _TFTP_SUPPORT_H_
 
+#include <fcntl.h> // O_RDONLY
 /*
  * File transfer modes
  */
@@ -68,12 +69,6 @@ struct tftpd_fileops {
     int (*read)(int, void *, int);
 };
 
-// Flags - passed to "open"
-#ifndef O_RDONLY
-#define O_RDONLY 1
-#define O_WRONLY 2
-#endif
-
 __externC int tftpd_start(int, struct tftpd_fileops *);
 __externC int tftpd_stop(int);