Current !DESKTOP ps -w implementation uses sysinfo(2) syscall, which does not work on anything but linux. Apparently we don't have -w working anymore: neither desktop nor !desktop... :(
I mean no working -l ofcourse. -w does not work too, in DESKTOP case.
Created attachment 4376 [details] proposed patch
Apparently this whole thing is fsck'd up. This patch at least makes it compilable on freebsd. DESKTOP case is still non-functional.
Fixed in git: commit ac42e3de90ebf4b921035893e3670da63cad882c Author: Michael Tokarev <mjt@tls.msk.ru> Date: Wed Jun 13 02:51:56 2012 +0200 ps: use separate get_uptime() and make it work on non-linux too Create get_uptime() function in procps/ps.c, and use it rather than relying on linux-specific sysinfo() inline.