Группа :: Система/Библиотеки
Пакет: libsx
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: libsx-strdup.diff
Скачать
Скачать
--- libsx-2.05/src/dirlist.c.strdup 1999-12-30 08:22:14.000000000 +0100
+++ libsx-2.05/src/dirlist.c 2007-02-15 16:15:22.000000000 +0100
@@ -32,7 +32,9 @@
#include <sys/param.h>
#include <sys/stat.h>
+#ifndef strdup
extern char *strdup(char *str);
+#endif
extern char _FreqFilter[84];
extern int view_dir, view_pt;
--- libsx-2.05/src/freq.c.strdup 2007-02-15 16:16:18.000000000 +0100
+++ libsx-2.05/src/freq.c 2007-02-15 16:16:48.000000000 +0100
@@ -60,8 +60,9 @@
* in the butt. Why on earth isn't strdup() in the POSIX standard
* but something completely useless like mbstowcs() is?
*/
+#ifndef strdup
char *strdup(const char *str);
-
+#endif
/*
* Here's where the real code begins.
--- libsx-2.05/src/dialog.c.strdup 2000-07-23 18:02:11.000000000 +0200
+++ libsx-2.05/src/dialog.c 2007-02-15 16:15:22.000000000 +0100
@@ -247,8 +247,10 @@
void PopdownDialog(Dialog popup, char **answer)
{
- char *tmp;
+#ifndef strdup
extern char *strdup(char *str);
+#endif
+ char *tmp;
if (answer)
{
--- libsx-2.05/freq/freq.c.strdup 1999-07-04 06:07:13.000000000 +0200
+++ libsx-2.05/freq/freq.c 2007-02-15 16:15:22.000000000 +0100
@@ -56,8 +56,9 @@
* in the butt. Why on earth isn't strdup() in the POSIX standard
* but something completely useless like mbstowcs() is?
*/
+#ifndef strdup
char *strdup(const char *str);
-
+#endif
/*
* Here's where the real code begins.