diff src/xs_support.c @ 214:575686094eb1

Portability fixes
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 15 Dec 2004 11:02:02 +0000
parents 8b896d461fdb
children 57231fe14369
line wrap: on
line diff
--- a/src/xs_support.c	Wed Dec 15 11:00:05 2004 +0000
+++ b/src/xs_support.c	Wed Dec 15 11:02:02 2004 +0000
@@ -19,8 +19,7 @@
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */
-
-#include <string.h>
+#include "xmms-sid.h"
 #include "xs_support.h"
 
 
@@ -124,3 +123,16 @@
 {
  while (pcStr[*piPos] && isdigit(pcStr[*piPos])) (*piPos)++;
 }
+
+
+#ifndef HAVE_MEMSET
+void *xs_memset(void *p, int c, size_t n)
+{
+ gchar *dp;
+ 
+ dp = (gchar *) p;
+ while (n--) { *dp = (gchar) c; n--; }
+
+ return p;
+}
+#endif