- Fix wrong linking - include <time.h> to avoid warnings. OBS-URL: https://build.opensuse.org/request/show/80107 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/bb?expand=0&rev=5
40 lines
850 B
Diff
40 lines
850 B
Diff
--- bb.c.orig
|
|
+++ bb.c
|
|
@@ -21,10 +21,13 @@
|
|
* 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*/
|
|
|
|
+#include "config.h"
|
|
+
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
#include <ctype.h>
|
|
#include <aalib.h>
|
|
+#include <time.h>
|
|
#include "bb.h"
|
|
|
|
int finish_stuff, starttime, endtime;
|
|
--- configure.in.orig
|
|
+++ configure.in
|
|
@@ -3,8 +3,9 @@ AC_INIT(main.c)
|
|
AM_INIT_AUTOMAKE(bb, 1.3.0)
|
|
AM_CONFIG_HEADER(aconfig.h)
|
|
|
|
-use_cc_g_flag=no
|
|
-AC_PROG_CC
|
|
+AC_PROG_CC_STDC
|
|
+AC_USE_SYSTEM_EXTENSIONS
|
|
+AC_SYS_LARGEFILE
|
|
AC_PROG_INSTALL
|
|
AC_HEADER_STDC
|
|
|
|
@@ -27,7 +28,7 @@ AC_FUNC_MEMCMP
|
|
AC_TYPE_SIGNAL
|
|
AC_SUBST(HAVE_MIKMOD)
|
|
AC_CHECK_FUNCS(ftime gettimeofday select strdup strstr strtol)
|
|
-
|
|
+AC_SEARCH_LIBS(sin, m)
|
|
dnl Check for AA-lib
|
|
AM_PATH_AALIB(1.4.0, , AC_MSG_ERROR([*** AALIB >= 1.4.0 not installed - please install first ***]))
|
|
CFLAGS="$CFLAGS $AALIB_CFLAGS"
|