roundup not portable (CVS 02/10/01)
Tim Rice
tim at multitalents.net
Tue Feb 13 08:41:52 EST 2001
SCO has no roundup()
...
cc -o ssh ssh.o sshconnect.o sshconnect1.o sshconnect2.o log-client.o readconf.o
clientloop.o -L. -Lopenbsd-compat/ -L/usr/local/lib -L/usr/local/ssl/lib -L/us
r/local/ssl -lssh -lopenbsd-compat -lwrap -lcrypto -lz -lgen -lprot -lx -ltinfo
-lm -lsocket
undefined first referenced
symbol in file
roundup sshconnect1.o
i386ld fatal: Symbol referencing errors. No output written to ssh
gmake: *** [ssh] Error 13
...
Is roundup a define on all the platforms that support it?
Can we safely do
#ifndef roundup
#define roundup(x, y) ((((x)+((y)-1))/(y))*(y))
#endif
It seems to be a define on Solaris, UnixWare, & Linux.
--
Tim Rice Multitalents (707) 887-1469
tim at multitalents.net
More information about the openssh-unix-dev
mailing list