Wireshark-dev: Re: [Wireshark-dev] On SLES 11 app_mem_usage.c:105: error: implicit declaration
From: Evan Huus <eapache@xxxxxxxxx>
Date: Tue, 6 Aug 2013 09:18:44 -0400
You can replace pread with an lseek and a read, I think.

On Tue, Aug 6, 2013 at 8:33 AM, Anders Broman
<anders.broman@xxxxxxxxxxxx> wrote:
> Hi,
>
> It’s a managed box so I can’t alter its content glibc-2.9-13.3.1
>
>
>
> From: wireshark-dev-bounces@xxxxxxxxxxxxx
> [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Evan Huus
> Sent: den 6 augusti 2013 14:04
> To: Developer support list for Wireshark
> Subject: Re: [Wireshark-dev] On SLES 11 app_mem_usage.c:105: error: implicit
> declaration of function 'pread'
>
>
>
> http://linux.die.net/man/2/pread
>
>
>
> Make sure you have the necessary includes and a new enough libc?
>
>
> On 2013-08-06, at 7:29 AM, Anders Broman <anders.broman@xxxxxxxxxxxx> wrote:
>
> Hi,
>
> I get:
>
> app_mem_usage.c: In function ‘inux_get_memory’:
>
> app_mem_usage.c:105: error: implicit declaration of function ‘pread’
>
> Building on SLES11 any ideas?
>
>
>
> Regards
>
> Anders
>
> ___________________________________________________________________________
> Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
> Archives:    http://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe
>
>
> ___________________________________________________________________________
> Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
> Archives:    http://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>              mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe