Prefer <fcntl.h> over <sys/fcntl.h>.
<fcntl.h> is the name used by POSIX, so we prefer this and only fall back to <sys/fcntl.h> on non-POSIX systems. Fixes warnings compiling against musl libc. Reported by ncopa. git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@531 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
[Changes 1.2c01]
|
[Changes 1.2c01]
|
||||||
|
|
||||||
|
* Prefer <fcntl.h> over <sys/fcntl.h> (reported by ncopa). (caf)
|
||||||
|
|
||||||
* Fix overflow in say() when handling a maximum-length client message. (caf)
|
* Fix overflow in say() when handling a maximum-length client message. (caf)
|
||||||
|
|
||||||
* Remove WANT_CHAN_NICK_SERV define and include network services commands
|
* Remove WANT_CHAN_NICK_SERV define and include network services commands
|
||||||
|
|||||||
@@ -78,13 +78,13 @@ extern char thing_star[4];
|
|||||||
# endif /* HAVE_SYS_TIME_H */
|
# endif /* HAVE_SYS_TIME_H */
|
||||||
#endif /* TIME_WITH_SYS_TIME */
|
#endif /* TIME_WITH_SYS_TIME */
|
||||||
|
|
||||||
#ifdef HAVE_SYS_FCNTL_H
|
#ifdef HAVE_FCNTL_H
|
||||||
# include <sys/fcntl.h>
|
#include <fcntl.h>
|
||||||
#else
|
#else
|
||||||
#ifdef HAVE_FCNTL_H
|
# ifdef HAVE_SYS_FCNTL_H
|
||||||
#include <fcntl.h>
|
# include <sys/fcntl.h>
|
||||||
#endif /* HAVE_FCNTL_H */
|
# endif
|
||||||
#endif
|
#endif /* HAVE_FCNTL_H */
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|||||||
@@ -62,11 +62,11 @@
|
|||||||
/*
|
/*
|
||||||
* Deal with brokenness in <fcntl.h> and <sys/fcntl.h>
|
* Deal with brokenness in <fcntl.h> and <sys/fcntl.h>
|
||||||
*/
|
*/
|
||||||
#ifdef HAVE_SYS_FCNTL_H
|
#ifdef HAVE_FCNTL_H
|
||||||
# include <sys/fcntl.h>
|
# include <fcntl.h>
|
||||||
#else
|
#else
|
||||||
# ifdef HAVE_FCNTL_H
|
# ifdef HAVE_SYS_FCNTL_H
|
||||||
# include <fcntl.h>
|
# include <sys/fcntl.h>
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user