Move SIZE_MAX compat define into missing.h where it belongs.

This commit is contained in:
Todd C. Miller
2014-05-01 08:38:43 -06:00
parent cbee9cc8cb
commit 0a9a8d9562
4 changed files with 106 additions and 138 deletions

View File

@@ -57,20 +57,6 @@
#include "sudoers.h"
/*
* If there is no SIZE_MAX or SIZE_T_MAX we have to assume that size_t
* could be signed (as it is on SunOS 4.x). This just means that
* we cannot allocate huge amounts on such a platform but that is OK
* since sudo doesn't need to do so anyway.
*/
#ifndef SIZE_MAX
# ifdef SIZE_T_MAX
# define SIZE_MAX SIZE_T_MAX
# else
# define SIZE_MAX INT_MAX
# endif /* SIZE_T_MAX */
#endif /* SIZE_MAX */
/*
* Flags used in rebuild_env()
*/