----- Original Message ----- > On 01/19/2012 02:55 AM, Jaroslav Škarvada wrote: > > gcc-4.7 requires unistd include on several places. > > --- > > cpu/intel_cpus.cpp | 1 + > > devices/alsa.cpp | 1 + > > devices/device.cpp | 1 + > > devices/i915-gpu.cpp | 1 + > > devices/network.cpp | 1 + > > devices/rfkill.cpp | 1 + > > devices/thinkpad-fan.cpp | 1 + > > devices/thinkpad-light.cpp | 1 + > > 8 files changed, 8 insertions(+), 0 deletions(-) > > > > diff --git a/cpu/intel_cpus.cpp b/cpu/intel_cpus.cpp > > index db5afb2..8a50dd5 100644 > > --- a/cpu/intel_cpus.cpp > > +++ b/cpu/intel_cpus.cpp > > @@ -34,6 +34,7 @@ > > #include<sys/time.h> > > #include<string.h> > > #include<errno.h> > > +#include<unistd.h> > > > > #include "../lib.h" > > #include "../parameters/parameters.h" > > diff --git a/devices/alsa.cpp b/devices/alsa.cpp > > index 9f56826..2c0b03f 100644 > > --- a/devices/alsa.cpp > > +++ b/devices/alsa.cpp > > @@ -28,6 +28,7 @@ > > #include<stdio.h> > > #include<sys/types.h> > > #include<dirent.h> > > +#include<unistd.h> > > > > > > using namespace std; > > diff --git a/devices/device.cpp b/devices/device.cpp > > index 09b2d97..6fc72a6 100644 > > --- a/devices/device.cpp > > +++ b/devices/device.cpp > > @@ -29,6 +29,7 @@ > > #include<stdio.h> > > #include<limits.h> > > #include<stdlib.h> > > +#include<unistd.h> > > > > using namespace std; > > > > diff --git a/devices/i915-gpu.cpp b/devices/i915-gpu.cpp > > index 57cfc67..bcc07cc 100644 > > --- a/devices/i915-gpu.cpp > > +++ b/devices/i915-gpu.cpp > > @@ -28,6 +28,7 @@ > > #include<stdio.h> > > #include<sys/types.h> > > #include<dirent.h> > > +#include<unistd.h> > > > > > > using namespace std; > > diff --git a/devices/network.cpp b/devices/network.cpp > > index 1eaaafc..6025787 100644 > > --- a/devices/network.cpp > > +++ b/devices/network.cpp > > @@ -33,6 +33,7 @@ > > #include<dirent.h> > > #include<libgen.h> > > #include<stdlib.h> > > +#include<unistd.h> > > > > #include<linux/ethtool.h> > > > > diff --git a/devices/rfkill.cpp b/devices/rfkill.cpp > > index 6bfcf07..5a1f8ac 100644 > > --- a/devices/rfkill.cpp > > +++ b/devices/rfkill.cpp > > @@ -29,6 +29,7 @@ > > #include<sys/types.h> > > #include<dirent.h> > > #include<libgen.h> > > +#include<unistd.h> > > > > > > using namespace std; > > diff --git a/devices/thinkpad-fan.cpp b/devices/thinkpad-fan.cpp > > index 939a826..9f470e4 100644 > > --- a/devices/thinkpad-fan.cpp > > +++ b/devices/thinkpad-fan.cpp > > @@ -29,6 +29,7 @@ > > #include<sys/types.h> > > #include<dirent.h> > > #include<math.h> > > +#include<unistd.h> > > > > #include "../lib.h" > > > > diff --git a/devices/thinkpad-light.cpp > > b/devices/thinkpad-light.cpp > > index 0b9f67e..e5fde10 100644 > > --- a/devices/thinkpad-light.cpp > > +++ b/devices/thinkpad-light.cpp > > @@ -29,6 +29,7 @@ > > #include<sys/types.h> > > #include<dirent.h> > > #include<math.h> > > +#include<unistd.h> > > > > #include "../lib.h" > > > Thank you, your patch has been applied. > > -Chris > Thanks for info and sorry for multiple posting. It seems my sendmail originated mails are filtered from the mailing list probably by spam-filter. In case you have access to logs, please could you tell me what's wrong with the mail (or headers) causing it to be blocked?
thanks & regards Jaroslav _______________________________________________ Power mailing list Power@bughost.org https://bughost.org/mailman/listinfo/power