Move va_copy compat macro to missing.h
This commit is contained in:
@@ -99,6 +99,17 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Pre-C99 compilers may lack a va_copy macro.
|
||||||
|
*/
|
||||||
|
#ifndef va_copy
|
||||||
|
# ifdef __va_copy
|
||||||
|
# define va_copy(d, s) __va_copy(d, s)
|
||||||
|
# else
|
||||||
|
# define va_copy(d, s) memcpy(&(d), &(s), sizeof(d));
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Some systems lack full limit definitions.
|
* Some systems lack full limit definitions.
|
||||||
*/
|
*/
|
||||||
|
@@ -59,10 +59,6 @@
|
|||||||
|
|
||||||
#include "sudoers.h"
|
#include "sudoers.h"
|
||||||
|
|
||||||
#ifndef va_copy
|
|
||||||
# define va_copy(d, s) memcpy(&(d), &(s), sizeof(d));
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Special message for log_warning() so we know to use ngettext() */
|
/* Special message for log_warning() so we know to use ngettext() */
|
||||||
#define INCORRECT_PASSWORD_ATTEMPT ((char *)0x01)
|
#define INCORRECT_PASSWORD_ATTEMPT ((char *)0x01)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user