From 457a1aa19ee9d1c43de768511c448ccfb8d992e9 Mon Sep 17 00:00:00 2001
From: Bruno Haible <bruno@clisp.org>
Date: Sat, 12 Apr 2008 00:24:39 +0200
Subject: [PATCH] Fix compilation error with IRIX 6.5 cc.

---
 ChangeLog  | 4 ++++
 lib/trim.c | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 183801c234..0dbca3640b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-04-11  Bruno Haible  <bruno@clisp.org>
+
+	* lib/trim.c: Include <string.h>.
+
 2008-04-11  Eric Blake  <ebb9@byu.net>
 
 	Avoid compile failure on OS/2.
diff --git a/lib/trim.c b/lib/trim.c
index f687f1858c..6a71578bf6 100644
--- a/lib/trim.c
+++ b/lib/trim.c
@@ -1,5 +1,5 @@
 /* Removes leading and/or trailing whitespaces
-   Copyright (C) 2006-2007 Free Software Foundation, Inc.
+   Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -22,6 +22,7 @@
 #include "trim.h"
 
 #include <ctype.h>
+#include <string.h>
 
 #if HAVE_MBRTOWC 
 # include <stddef.h>
-- 
2.39.5