changeset 734:ff62f5530a36 trunk

[svn] - freebsd portability fixes from "The_Paya". Closes #814.
author nenolod
date Tue, 27 Feb 2007 01:27:06 -0800
parents 7c04570bf809
children 6c3c7b841382
files ChangeLog configure.ac src/aosd/ghosd.h src/tta/id3.c
diffstat 4 files changed, 14 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Feb 26 05:14:22 2007 -0800
+++ b/ChangeLog	Tue Feb 27 01:27:06 2007 -0800
@@ -1,3 +1,12 @@
+2007-02-26 13:14:22 +0000  Strahinja Kustudic <kustodian@gmail.com>
+  revision [1564]
+  fixed where srobbler dumps files.
+  trunk/src/scrobbler/gerpok.c    |    2 +-
+  trunk/src/scrobbler/hatena.c    |    2 +-
+  trunk/src/scrobbler/scrobbler.c |    2 +-
+  3 files changed, 3 insertions(+), 3 deletions(-)
+
+
 2007-02-26 11:40:29 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [1562]
   - path fixes
--- a/configure.ac	Mon Feb 26 05:14:22 2007 -0800
+++ b/configure.ac	Tue Feb 27 01:27:06 2007 -0800
@@ -876,7 +876,9 @@
 AC_CHECK_HEADERS(wchar.h)
 AC_CHECK_HEADERS(fts.h)
 
-AC_CHECK_FUNCS([mkdtemp getmntinfo statvfs strtoul lrintf])
+AC_CHECK_DECL([lrintf],[AC_DEFINE(HAVE_LRINTF,1,[Define this if the 'lrintf' function is declared in math.h])],[
+    AC_CHECK_FUNCS([lrintf])])
+AC_CHECK_FUNCS([mkdtemp getmntinfo statvfs strtoul])
 
 
 if test "${ac_cv_header_linux_cdrom_h}" = "yes" || test "${ac_cv_header_sys_cdio_h}" = "yes"
--- a/src/aosd/ghosd.h	Mon Feb 26 05:14:22 2007 -0800
+++ b/src/aosd/ghosd.h	Tue Feb 27 01:27:06 2007 -0800
@@ -10,7 +10,7 @@
 
 #include <cairo/cairo.h>
 
-#include <values.h>  /* MAXINT */
+#include <limits.h>  /* INT_MAX */
 #include <sys/time.h>  /* timeval */
 
 typedef struct _Ghosd Ghosd;
@@ -32,7 +32,7 @@
 Ghosd *ghosd_new(void);
 void   ghosd_destroy(Ghosd* ghosd);
 
-#define GHOSD_COORD_CENTER MAXINT
+#define GHOSD_COORD_CENTER INT_MAX
 void ghosd_set_transparent(Ghosd *ghosd, int transparent);
 void ghosd_set_position(Ghosd *ghosd, int x, int y, int width, int height);
 void ghosd_set_render(Ghosd *ghosd, GhosdRenderFunc render_func,
--- a/src/tta/id3.c	Mon Feb 26 05:14:22 2007 -0800
+++ b/src/tta/id3.c	Tue Feb 27 01:27:06 2007 -0800
@@ -1,5 +1,4 @@
 #include <stdio.h>
-#include <malloc.h>
 #include <string.h>
 #include "ttalib.h"
 #include "id3genre.h"