From 5b7024270ab81f9aa8dbc114ebf3f9bfcd57d92b Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 16 Apr 2007 01:33:26 +0200 Subject: [PATCH] [BUILD] regparm in fd.h broke build on gcc-2.95 It was necessary to put the attribute after the type. --- include/types/fd.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/include/types/fd.h b/include/types/fd.h index c97d8ed37..392c94ee7 100644 --- a/include/types/fd.h +++ b/include/types/fd.h @@ -85,18 +85,18 @@ struct fdtab { */ struct poller { void *private; /* any private data for the poller */ - REGPRM2 int (*is_set)(const int fd, int dir); /* check if is being polled for dir */ - REGPRM2 int (*set)(const int fd, int dir); /* set polling on for */ - REGPRM2 int (*clr)(const int fd, int dir); /* clear polling on for */ - REGPRM2 int (*cond_s)(const int fd, int dir); /* set polling on for if unset */ - REGPRM2 int (*cond_c)(const int fd, int dir); /* clear polling on for if set */ - REGPRM1 void (*rem)(const int fd); /* remove any polling on */ - REGPRM1 void (*clo)(const int fd); /* mark as closed */ - REGPRM2 void (*poll)(struct poller *p, int wait_time); /* the poller itself */ - REGPRM1 int (*init)(struct poller *p); /* poller initialization */ - REGPRM1 void (*term)(struct poller *p); /* termination of this poller */ - REGPRM1 int (*test)(struct poller *p); /* pre-init check of the poller */ - REGPRM1 int (*fork)(struct poller *p); /* post-fork re-opening */ + int REGPRM2 (*is_set)(const int fd, int dir); /* check if is being polled for dir */ + int REGPRM2 (*set)(const int fd, int dir); /* set polling on for */ + int REGPRM2 (*clr)(const int fd, int dir); /* clear polling on for */ + int REGPRM2 (*cond_s)(const int fd, int dir); /* set polling on for if unset */ + int REGPRM2 (*cond_c)(const int fd, int dir); /* clear polling on for if set */ + void REGPRM1 (*rem)(const int fd); /* remove any polling on */ + void REGPRM1 (*clo)(const int fd); /* mark as closed */ + void REGPRM2 (*poll)(struct poller *p, int wait_time); /* the poller itself */ + int REGPRM1 (*init)(struct poller *p); /* poller initialization */ + void REGPRM1 (*term)(struct poller *p); /* termination of this poller */ + int REGPRM1 (*test)(struct poller *p); /* pre-init check of the poller */ + int REGPRM1 (*fork)(struct poller *p); /* post-fork re-opening */ const char *name; /* poller name */ int pref; /* try pollers with higher preference first */ };