Fix Linux rpc problems with new glibc
This commit is contained in:
committed by
Jon Trulson
parent
16fbb15ecc
commit
07f272122d
@@ -136,7 +136,11 @@ void DtMmdbQuit()
|
||||
|
||||
}
|
||||
|
||||
#if __cplusplus < 201103L
|
||||
void* operator new( size_t sz ) throw(std::bad_alloc)
|
||||
#else
|
||||
void* operator new( size_t sz )
|
||||
#endif
|
||||
{
|
||||
void* p = (void*)malloc(sz);
|
||||
//printf("a::operator new called(). sz= %d, allo=%x\n", sz, p);
|
||||
|
||||
@@ -160,7 +160,7 @@ user_base::checking_status_t user_base::check_mode()
|
||||
|
||||
user_base::checking_status_t user_base::check_lock()
|
||||
{
|
||||
char lock_dir[PATHSIZ];
|
||||
char lock_dir[PATHSIZ+5];
|
||||
int len;
|
||||
|
||||
snprintf(lock_dir, sizeof(lock_dir), "%s/%s", base_path, LOCK_DIR);
|
||||
|
||||
Reference in New Issue
Block a user