libc: fix includes for abs/labs
authorAlan Cox <alan@linux.intel.com>
Thu, 23 Jun 2016 16:49:06 +0000 (17:49 +0100)
committerAlan Cox <alan@linux.intel.com>
Thu, 23 Jun 2016 16:49:06 +0000 (17:49 +0100)
Library/include/stdlib.h
Library/libs/labs.c

index 6bf1146..9968614 100644 (file)
@@ -43,6 +43,8 @@ extern int atoi(const char *__nptr);
 extern long atol(const char *__nptr);
 extern double atof(const char *__nptr);
 
+extern int abs(int __i);
+extern int labs(long __i);
 extern char *_itoa(int __value);
 extern char *_uitoa(unsigned int __value);
 extern char *_ltoa(long __value);
index 0d909e5..0a95943 100644 (file)
@@ -3,8 +3,7 @@
  * under the GNU Library General Public License.
  */
 
-#include <string.h>
-#include <sys/types.h>
+#include <stdlib.h>
 
 long labs(long arg1)
 {