summaryrefslogtreecommitdiff
path: root/src/editfns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/editfns.c b/src/editfns.c
index bfc982b9dbe..86129c63698 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -33,6 +33,12 @@ Boston, MA 02111-1307, USA. */
#include <unistd.h>
#endif
+/* Without this, sprintf on Mac OS Classic will produce wrong
+ result. */
+#ifdef MAC_OS8
+#include <stdio.h>
+#endif
+
#include <ctype.h>
#include "lisp.h"