From 0e0c55aecabf98dd2fadd6986472d5e1b1bd491c Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Mon, 12 Dec 2022 19:55:12 +0100 Subject: [PATCH] Assume F_* and SEEK_* macros are defined MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They are required by POSIX.1-2001. Link: Cc: Christian Göttsche Cc: Iker Pedrosa Cc: Mike Frysinger Signed-off-by: Alejandro Colomar --- lib/defines.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/defines.h b/lib/defines.h index 2a6189f8..5e19c5d7 100644 --- a/lib/defines.h +++ b/lib/defines.h @@ -154,19 +154,6 @@ static inline void memzero(void *ptr, size_t size) #define OPENLOG(progname) openlog(progname, SYSLOG_OPTIONS, SYSLOG_FACILITY) -#ifndef F_OK -# define F_OK 0 -# define X_OK 1 -# define W_OK 2 -# define R_OK 4 -#endif - -#ifndef SEEK_SET -# define SEEK_SET 0 -# define SEEK_CUR 1 -# define SEEK_END 2 -#endif - #include #define STTY(fd, termio) tcsetattr(fd, TCSANOW, termio) #define GTTY(fd, termio) tcgetattr(fd, termio)