From: Mark Eichin Date: Wed, 27 Jul 1994 20:43:14 +0000 (+0000) Subject: roundup X-Git-Tag: krb5-1.0-beta4.2~90 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c0c371e1afd0a81798316455c8bb8935a4e38bfa;p=krb5.git roundup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4027 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index dcb1f5754..92c437e1c 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,5 +1,7 @@ Wed Jul 27 12:52:04 1994 Mark Eichin (eichin@tweedledumber.cygnus.com) + * krlogind.c, krlogin.c, krcp.c: define roundup if needed. + * Makefile.in: add LIBOBJS, dependency for getdtablesize.o. * getdtablesize.c: new file. * configure.in: build getdtablesize.c if needed. diff --git a/src/appl/bsd/krcp.c b/src/appl/bsd/krcp.c index 4a98b2d31..57b5d8464 100644 --- a/src/appl/bsd/krcp.c +++ b/src/appl/bsd/krcp.c @@ -60,6 +60,10 @@ static char sccsid[] = "@(#)rcp.c 5.10 (Berkeley) 9/20/88"; #include #include +#ifndef roundup +#define roundup(x,y) ((((x)+(y)-1)/(y))*(y)) +#endif + #ifdef KERBEROS #include #include diff --git a/src/appl/bsd/krlogin.c b/src/appl/bsd/krlogin.c index ffd8b7996..6abfe7989 100644 --- a/src/appl/bsd/krlogin.c +++ b/src/appl/bsd/krlogin.c @@ -89,6 +89,10 @@ static char sccsid[] = "@(#)rlogin.c 5.12 (Berkeley) 9/19/88"; #include #include +#ifndef roundup +#define roundup(x,y) ((((x)+(y)-1)/(y))*(y)) +#endif + #ifdef KERBEROS #include #include diff --git a/src/appl/bsd/krlogind.c b/src/appl/bsd/krlogind.c index 969524185..32f151299 100644 --- a/src/appl/bsd/krlogind.c +++ b/src/appl/bsd/krlogind.c @@ -168,6 +168,10 @@ struct winsize { }; #endif /* NO_WINSIZE */ +#ifndef roundup +#define roundup(x,y) ((((x)+(y)-1)/(y))*(y)) +#endif + #ifdef KERBEROS #include