From aba3f506c36b0bc5027db296019e12df2f39cad8 Mon Sep 17 00:00:00 2001 From: Aditya Upadhyay Date: Thu, 20 Jul 2017 13:34:40 +0530 Subject: [PATCH 2/6] Importing of imaxdiv inttypes method from FreeBSD. --- newlib/libc/stdlib/Makefile.am | 1 + newlib/libc/stdlib/imaxdiv.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/newlib/libc/stdlib/Makefile.am b/newlib/libc/stdlib/Makefile.am index d97b0250c..534a867b1 100644 --- a/newlib/libc/stdlib/Makefile.am +++ b/newlib/libc/stdlib/Makefile.am @@ -34,6 +34,7 @@ GENERAL_SOURCES = \ getenv_r.c \ itoa.c \ imaxabs.c \ + imaxdiv.c \ labs.c \ ldiv.c \ ldtoa.c \ diff --git a/newlib/libc/stdlib/imaxdiv.c b/newlib/libc/stdlib/imaxdiv.c index 15d78baf4..eb3e99ad6 100644 --- a/newlib/libc/stdlib/imaxdiv.c +++ b/newlib/libc/stdlib/imaxdiv.c @@ -25,10 +25,10 @@ */ #include -__FBSDID("$FreeBSD$"); +__FBSDID("$FreeBSD: head/lib/libc/stdlib/imaxdiv.c 301115 2016-06-01 10:14:25Z ache $"); -#include #include +#include /* See comments in div.c for implementation details. */ imaxdiv_t -- 2.11.0