Skip to content

Commit

Permalink
Fix inclusion of <sys/select.h>
Browse files Browse the repository at this point in the history
It was sometimes missing, and sometimes useless.
  • Loading branch information
Julien-Elie committed Jul 8, 2023
1 parent ea68c8c commit f266230
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 10 deletions.
5 changes: 5 additions & 0 deletions innd/innd.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

#include "portable/system.h"

/* Needed on AIX 4.1 to get fd_set and friends. */
#ifdef HAVE_SYS_SELECT_H
# include <sys/select.h>
#endif

#include "inn/innconf.h"
#include "inn/messages.h"
#include "inn/newsuser.h"
Expand Down
5 changes: 5 additions & 0 deletions lib/nntp.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
#endif
#include <time.h>

/* Needed on AIX 4.1 to get fd_set and friends. */
#if HAVE_SYS_SELECT_H
# include <sys/select.h>
#endif

#include "inn/buffer.h"
#include "inn/innconf.h"
#include "inn/libinn.h"
Expand Down
5 changes: 5 additions & 0 deletions nnrpd/auth-ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
#include <signal.h>
#include <sys/wait.h>

/* Needed on AIX 4.1 to get fd_set and friends. */
#if HAVE_SYS_SELECT_H
# include <sys/select.h>
#endif

#include "inn/buffer.h"
#include "inn/messages.h"
#include "inn/vector.h"
Expand Down
5 changes: 0 additions & 5 deletions nnrpd/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@

#include "portable/system.h"

/* Needed on AIX 4.1 to get fd_set and friends. */
#ifdef HAVE_SYS_SELECT_H
# include <sys/select.h>
#endif

#include "inn/innconf.h"
#include "nnrpd.h"
#include "tls.h"
Expand Down
5 changes: 5 additions & 0 deletions nnrpd/nnrpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
#endif
#include <sys/wait.h>

/* Needed on AIX 4.1 to get fd_set and friends. */
#if HAVE_SYS_SELECT_H
# include <sys/select.h>
#endif

#include "inn/innconf.h"
#include "inn/libinn.h"
#include "inn/messages.h"
Expand Down
5 changes: 0 additions & 5 deletions nnrpd/perm.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ enum {
#include "nnrpd.h"
#include "tls.h"

/* Needed on AIX 4.1 to get fd_set and friends. */
#ifdef HAVE_SYS_SELECT_H
# include <sys/select.h>
#endif

/* Data types. */
typedef struct _CONFCHAIN {
CONFFILE *f;
Expand Down

0 comments on commit f266230

Please sign in to comment.