components/bash/patches/solaris-004.snprintf.c.patch
author Jiri Sasek <Jiri.Sasek@Oracle.COM>
Tue, 26 Jul 2016 07:41:05 -0700
changeset 6477 346bfca0ae26
parent 5518 c47fe0edc204
child 7485 89b2d849f322
permissions -rw-r--r--
24354183 Samba: Update to 4.4.5 24302327 problem in UTILITY/SAMBA

# We need to include <math.h> for bash's own implementation
# of snprintf.
# Solaris-specific patch. Not for upstream.
--- lib/sh/snprintf.c	2010-05-30 15:34:52.000000000 -0700
+++ lib/sh/snprintf.c	2011-11-29 09:31:46.751983149 -0800
@@ -120,6 +120,8 @@
 #  include <locale.h>
 #endif
 
+#include <math.h>
+
 #include "stdc.h"
 #include <shmbutil.h>