And here is the patch for one of the modules (places).

On Mon, Jul 20, 2009 at 5:14 PM, Norberto Lopes<[email protected]> wrote:
> Hello all.
> I compiled enlightenment in FreeBSD amd64 (only the bare minimum for a
> functional e17 minus the battery module as I don't care about it :D)
> and here are my findings.
> Small things will be explained below, bigger patches will be attached.
>
> etk needs to depend on gettext 0.17, else it will fail in @mkinstalld...@.
>
> -AM_GNU_GETTEXT_VERSION(0.14.1)
> +AM_GNU_GETTEXT_VERSION(0.17)
>
> ecore needs sys/select.h else e_slider.c will fail wondering about
> fd_set. (Patch #1)
>
> evas_common.h needs sysctl.h for the portion of code to calculate the
> number of cpus and
> evas_cpu.c includes num of cpus calculation for FreeBSD (Patch #2)
>
> There is also an issue with eet using gnutls, but cedric (irc) is
> already aware of it.
>
> Hope you find this useful.
>
> P.S.: only tested in BSD... so some stuff from my patches might get
> redundant in Linux.
> P.S.2: excuse the spam in the ml (I hope patches with .txt in the end
> will make gmail happy)
> --
> Norberto
>
--- E-MODULES-EXTRA/places/src/e_mod_places.c   2009-07-21 07:33:36.000000000 
+0200
+++ ../../enlightenment-src/E-MODULES-EXTRA/places/src/e_mod_places.c   
2009-07-21 15:14:18.000000000 +0200
@@ -18,7 +18,11 @@
 #include <e.h>
 #include <E_DBus.h>
 #include <E_Hal.h>
-#include <sys/vfs.h>
+#ifdef __FreeBSD__
+# include <sys/statvfs.h>
+#else
+# include <sys/vfs.h>
+#endif
 #include <errno.h>
 #include "config.h"
 #include "e_mod_main.h"
@@ -621,7 +625,12 @@
 static unsigned long long
 _places_free_space_get(const char *mount)
 {
-   struct statfs s;
+#ifdef __FreeBSD__
+  struct statvfs s;
+#else
+  struct statfs s;
+#endif
+
 //printf("GET SPACE of %s\n", mount);
    if (!mount) return 0;
    if (statfs(mount, &s) != 0)
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to