mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-13 07:10:05 +02:00
80 lines
2.3 KiB
Plaintext
80 lines
2.3 KiB
Plaintext
From dc2241488cbcde1116e7ad346d4e8a93bfe08d21 Mon Sep 17 00:00:00 2001
|
|
From: Jerome Duval <jerome.duval@gmail.com>
|
|
Date: Sat, 19 Apr 2014 21:36:18 +0000
|
|
Subject: gcc2 build fix
|
|
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
index d83b885..de089f1 100755
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -241,7 +241,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
|
|
dnl empty_array_size
|
|
AC_MSG_CHECKING([how to create empty arrays])
|
|
|
|
-empty_array_size="xxxx"
|
|
+empty_array_size="xxx"
|
|
AC_TRY_COMPILE([],[struct { int foo; int bar[]; } doo;], empty_array_size="")
|
|
|
|
if test "x$empty_array_size" = "xxxx"; then
|
|
@@ -623,6 +623,7 @@ if test "x$enable_cddb" != "xno"; then
|
|
[AC_MSG_WARN([new enough libcddb not found. CDDB access disabled. Get libcddb from http://libcddb.sourceforge.net])
|
|
HAVE_CDDB=no])
|
|
AC_CHECK_LIB(socket, connect)
|
|
+ AC_CHECK_LIB(network, connect)
|
|
AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, gethostbyname))
|
|
fi
|
|
|
|
diff --git a/example/mmc1.c b/example/mmc1.c
|
|
index 29991e7..66b7a67 100644
|
|
--- a/example/mmc1.c
|
|
+++ b/example/mmc1.c
|
|
@@ -90,9 +90,9 @@ main(int argc, const char *argv[])
|
|
{
|
|
driver_return_code_t i_status;
|
|
bool b_erasable;
|
|
+ cdio_mmc_feature_profile_t disctype;
|
|
|
|
i_status = mmc_get_disc_erasable(p_cdio, &b_erasable);
|
|
- cdio_mmc_feature_profile_t disctype;
|
|
if (DRIVER_OP_SUCCESS == i_status)
|
|
printf("-- Disc is %serasable.\n", b_erasable ? "" : "not ");
|
|
else
|
|
--
|
|
1.8.3.4
|
|
|
|
|
|
From ccff6bf33b3188cb6e19ab3c6bb6c0f3da2fbf07 Mon Sep 17 00:00:00 2001
|
|
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
|
Date: Fri, 12 Sep 2014 11:36:35 +0200
|
|
Subject: Fix tests for gcc2.
|
|
|
|
|
|
diff --git a/test/driver/bincue.c b/test/driver/bincue.c
|
|
index de64dce..7ed1ee8 100644
|
|
--- a/test/driver/bincue.c
|
|
+++ b/test/driver/bincue.c
|
|
@@ -45,7 +45,7 @@
|
|
#include "helper.h"
|
|
|
|
#ifndef DATA_DIR
|
|
-#define DATA_DIR "/src/external-vcs/savannah/libcdio/test/data"
|
|
+#define DATA_DIR "/sources/libcdio-0.92/test/data"
|
|
#endif
|
|
|
|
#define NUM_GOOD_CUES 2
|
|
@@ -117,9 +117,9 @@ main(int argc, const char *argv[])
|
|
if (!p_cdio) {
|
|
printf("Can't open cdda.cue\n");
|
|
} else {
|
|
+ char *psz_device;
|
|
/* Just test performing some operations. */
|
|
cdio_set_blocksize(p_cdio, 2048);
|
|
- char *psz_device;
|
|
|
|
#ifdef HAVE_CHDIR
|
|
if (0 == chdir(DATA_DIR))
|
|
--
|
|
1.8.3.4
|
|
|