This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: *bsd & darwin support in libiberty/physmem.c


Kaveh R. Ghazi wrote:
 > It applies cleanly against the current gcc trunk's libiberty.  (I
 > made an update for irix6 earlier today.)

This one applies cleanly after Rainer's install.  Try it instead,
thanks.


Adding this snippet made it work on darwin. At least your demo program gives something. But I'm not sure whether this is what you expect?


[titanium:~/gcc-work] andreast% ./phymem
total=2097152.000000Mb avail=1884176.000000Mb

sysctl -A gives:

hw.physmem = 536870912
hw.usermem = 482349056
hw.pagesize = 4096

Thanks,
Andreas

diff -u -r1.19.38.5 config.in
--- config.in   21 Feb 2003 20:43:51 -0000      1.19.38.5
+++ config.in   22 Feb 2003 07:55:58 -0000
@@ -177,6 +177,9 @@
 /* Define if you have the sysconf function.  */
 #undef HAVE_SYSCONF

+/* Define if you have the sysctl function.  */
+#undef HAVE_SYSCTL
+
 /* Define if you have the sysmp function.  */
 #undef HAVE_SYSMP

@@ -242,6 +245,9 @@

 /* Define if you have the <sys/stat.h> header file.  */
 #undef HAVE_SYS_STAT_H
+
+/* Define if you have the <sys/sysctl.h header file.  */
+#undef HAVE_SYS_SYSCTL_H

 /* Define if you have the <sys/sysinfo.h> header file.  */
 #undef HAVE_SYS_SYSINFO_H


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]