ports/net/rmsg/files/patch-ac
2013-04-23 21:56:07 +00:00

51 lines
1.1 KiB
Text

*** rmsg.h Sat Jun 26 17:05:59 1993
--- rmsg.h Tue Apr 23 17:18:46 2013
***************
*** 11,16 ****
--- 11,20 ----
* Last modified: Sat Aug 20 16:43:03 1988
*/
+ #ifdef _HAVE_PARAM_H
+ #include <sys/param.h>
+ #endif
+
#if defined(USG5) || defined(SVR4)
# define index strchr
# define rindex strrchr
***************
*** 46,57 ****
#define PATHLEN 1024
#define LINELEN 1024
#define UTMP "/etc/utmp"
#define UTMP_TTY_SIZE 8
#define UTMP_NAME_SIZE 8
struct command {
! char *token; /* Command name, e.g. msglast */
int (*function)(); /* Function which it is supposed to run */
};
--- 50,70 ----
#define PATHLEN 1024
#define LINELEN 1024
+
+ #if (defined(BSD) && (BSD >= 199103))
+ #include <paths.h>
+ #include <utmp.h>
+ #define UTMP _PATH_UTMP
+ #define UTMP_TTY_SIZE UT_LINESIZE
+ #define UTMP_NAME_SIZE UT_NAMESIZE
+ #else
#define UTMP "/etc/utmp"
#define UTMP_TTY_SIZE 8
#define UTMP_NAME_SIZE 8
+ #endif
struct command {
! const char *token; /* Command name, e.g. msglast */
int (*function)(); /* Function which it is supposed to run */
};