1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

Fixes for implicit declaration warnings

Signed-off-by: Anuradha Weeraman <aweeraman@gmail.com>
This commit is contained in:
Anuradha Weeraman 2020-06-14 09:55:08 -04:00
parent 6109f54a5e
commit 49cac9e604
3 changed files with 9 additions and 4 deletions

View file

@ -185,6 +185,10 @@
# endif /* !FIORDCHK */ # endif /* !FIORDCHK */
#endif /* FIONREAD */ #endif /* FIONREAD */
#if _sys_ioctl
#include <sys/ioctl.h>
#endif
extern int tty_alt(int); extern int tty_alt(int);
extern void tty_cooked(int); extern void tty_cooked(int);
extern int tty_get(int,struct termios*); extern int tty_get(int,struct termios*);

View file

@ -29,6 +29,10 @@
#include <ast.h> #include <ast.h>
#include <ast_tty.h> #include <ast_tty.h>
#if _sys_ioctl
#include <sys/ioctl.h>
#endif
#if defined(__STDPP__directive) && defined(__STDPP__hide) #if defined(__STDPP__directive) && defined(__STDPP__hide)
__STDPP__directive pragma pp:hide ioctl sleep __STDPP__directive pragma pp:hide ioctl sleep
#else #else
@ -36,10 +40,6 @@ __STDPP__directive pragma pp:hide ioctl sleep
#define sleep ______sleep #define sleep ______sleep
#endif #endif
#if _sys_ioctl
#include <sys/ioctl.h>
#endif
#if defined(TIOCGWINSZ) #if defined(TIOCGWINSZ)
#if _sys_stream && _sys_ptem #if _sys_stream && _sys_ptem
#include <sys/stream.h> #include <sys/stream.h>

View file

@ -104,6 +104,7 @@ USAGE_LICENSE
#include <ls.h> #include <ls.h>
#include <tv.h> #include <tv.h>
#include <rev.h> #include <rev.h>
#include <time.h>
#define COUNT (1<<0) #define COUNT (1<<0)
#define ERROR (1<<1) #define ERROR (1<<1)