Print this page
5910 libnisdb won't build with modern GCC
*** 22,31 ****
--- 22,33 ----
/*
* db_table.cc
*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ *
+ * Copyright 2015 RackTop Systems.
*/
#include <stdio.h>
#include <malloc.h>
#include <string.h>
*** 72,82 ****
}
/* Set maxTimeT to ~0 of appropriate length */
(void) memcpy(&maxTimeT, b, sizeof (time_t));
if (maxTimeT < 1)
! maxTimeT = ~(1<<((8*sizeof (maxTimeT))-1));
}
#pragma init(__setMaxTimeT)
}
/* How much to grow table by */
--- 74,84 ----
}
/* Set maxTimeT to ~0 of appropriate length */
(void) memcpy(&maxTimeT, b, sizeof (time_t));
if (maxTimeT < 1)
! maxTimeT = ~(1L<<((8*sizeof (maxTimeT))-1));
}
#pragma init(__setMaxTimeT)
}
/* How much to grow table by */