--- gsm-1.0-pl10/src/code.c.includes	1996-07-02 16:32:36.000000000 +0200
+++ gsm-1.0-pl10/src/code.c	2004-04-14 14:25:50.000000000 +0200
@@ -7,6 +7,7 @@
 /* $Header: /tmp_amd/presto/export/kbs/jutta/src/gsm/RCS/code.c,v 1.3 1996/07/02 09:59:05 jutta Exp $ */
 
 #include	"config.h"
+#include <string.h>
 
 
 #ifdef	HAS_STDLIB_H
--- gsm-1.0-pl10/src/toast.c.includes	1996-07-02 16:32:55.000000000 +0200
+++ gsm-1.0-pl10/src/toast.c	2004-04-14 14:31:22.000000000 +0200
@@ -6,7 +6,13 @@
 
 /* $Header: /tmp_amd/presto/export/kbs/jutta/src/gsm/RCS/toast.c,v 1.8 1996/07/02 10:41:04 jutta Exp $ */
 
+#define _BSD_SOURCE
+#define _GNU_SOURCE
 #include	"toast.h"
+#include <stdio.h>
+#include <unistd.h>
+#include <sys/types.h>
+#include <sys/stat.h>
 
 /*  toast -- lossy sound compression using the gsm library.
  */
