summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-05-14 21:00:40 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-05-14 21:00:40 +0000
commit5b8df1c12f64badfa04f9dd4dfd5f4045559d73e (patch)
treee53f675921113add266506a15e146cf03f1f46a8
parentf0a98b642d36f666312a1409eea7dc7282da2127 (diff)
downloaddrakx-5b8df1c12f64badfa04f9dd4dfd5f4045559d73e.tar
drakx-5b8df1c12f64badfa04f9dd4dfd5f4045559d73e.tar.gz
drakx-5b8df1c12f64badfa04f9dd4dfd5f4045559d73e.tar.bz2
drakx-5b8df1c12f64badfa04f9dd4dfd5f4045559d73e.tar.xz
drakx-5b8df1c12f64badfa04f9dd4dfd5f4045559d73e.zip
have slang and newt compile with dietlibc
-rw-r--r--mdk-stage1/dietlibc/include/math.h5
-rw-r--r--mdk-stage1/dietlibc/include/stdio.h1
-rw-r--r--mdk-stage1/dietlibc/include/stdlib.h2
-rw-r--r--mdk-stage1/dietlibc/include/sys/times.h2
-rw-r--r--mdk-stage1/dietlibc/lib/abs.c6
5 files changed, 16 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/include/math.h b/mdk-stage1/dietlibc/include/math.h
index 716bc8e19..2f4f2e33f 100644
--- a/mdk-stage1/dietlibc/include/math.h
+++ b/mdk-stage1/dietlibc/include/math.h
@@ -53,4 +53,9 @@ double log10(double d) __THROW __attribute__((__const__));
double pow(double x, double y) __THROW __attribute__((__const__));
+double sqrt(double x) __THROW __attribute__((__const__));
+double fabs(double x) __THROW __attribute__((__const__));
+double fmod(double x, double y) __THROW __attribute__((__const__));
+
+
#endif
diff --git a/mdk-stage1/dietlibc/include/stdio.h b/mdk-stage1/dietlibc/include/stdio.h
index 7c7c698eb..92d9dc0cb 100644
--- a/mdk-stage1/dietlibc/include/stdio.h
+++ b/mdk-stage1/dietlibc/include/stdio.h
@@ -63,6 +63,7 @@ int fflush(FILE *stream) __THROW;
int fclose(FILE *stream) __THROW;
+void clearerr(FILE *stream) __THROW;
int feof (FILE *stream) __THROW;
int ferror( FILE *stream) __THROW;
int fileno( FILE *stream) __THROW;
diff --git a/mdk-stage1/dietlibc/include/stdlib.h b/mdk-stage1/dietlibc/include/stdlib.h
index b85425426..800a80d10 100644
--- a/mdk-stage1/dietlibc/include/stdlib.h
+++ b/mdk-stage1/dietlibc/include/stdlib.h
@@ -57,4 +57,6 @@ void *alloca(size_t size) __THROW; /* gcc built-in */
char *realpath(const char *path, char *resolved_path) __THROW;
+int abs(int j) __THROW;
+
#endif
diff --git a/mdk-stage1/dietlibc/include/sys/times.h b/mdk-stage1/dietlibc/include/sys/times.h
index 7a1db07fa..72ec62fec 100644
--- a/mdk-stage1/dietlibc/include/sys/times.h
+++ b/mdk-stage1/dietlibc/include/sys/times.h
@@ -3,4 +3,6 @@
#include <linux/times.h>
+clock_t times(struct tms *buf);
+
#endif
diff --git a/mdk-stage1/dietlibc/lib/abs.c b/mdk-stage1/dietlibc/lib/abs.c
new file mode 100644
index 000000000..9d7055358
--- /dev/null
+++ b/mdk-stage1/dietlibc/lib/abs.c
@@ -0,0 +1,6 @@
+#include <stdlib.h>
+
+int abs(int j)
+{
+ return (j < 0) ? -j : j;
+}