Compare commits

...

2 Commits

Author SHA1 Message Date
jsg 60273ffa39 include signal.h for kill(2)
Remove an ifdef that prevented this.  signal.h is part of posix
and dtucker@ notes OpenSSH portable uses it without ifdefs.

ok matthieu@ robert@
2023-09-06 09:29:25 +00:00
robert 6a599fd2aa fix ISO C++17 does not allow 'register' storage class specifier error with clang16
pulled from upstream: https://gitlab.freedesktop.org/mesa/glu/-/merge_requests/10

ok jsg@
2023-09-05 15:35:17 +00:00
2 changed files with 2 additions and 5 deletions

View File

@ -40,10 +40,7 @@ static const char sccsid[] = "@(#)logout.c 4.02 97/04/01 xlockmore";
#if ( HAVE_SYSLOG_H && defined( USE_SYSLOG ))
#include <syslog.h>
#endif
#if defined(__CYGWIN__) || defined(SOLARIS2)
#include <signal.h>
#endif
#include <sys/signal.h>
extern Bool inroot, inwindow, nolock, debug;
extern char *logoutCmd;

View File

@ -73,8 +73,8 @@ Varray::~Varray( void )
inline void
Varray::update( Arc_ptr arc, long dir[2], REAL val )
{
register long ds = sgn(arc->tail()[0] - arc->prev->tail()[0]);
register long dt = sgn(arc->tail()[1] - arc->prev->tail()[1]);
long ds = sgn(arc->tail()[0] - arc->prev->tail()[0]);
long dt = sgn(arc->tail()[1] - arc->prev->tail()[1]);
if( dir[0] != ds || dir[1] != dt ) {
dir[0] = ds;