320cf85f7c08f1f2 Mon Sep 17 00:00:00 2001
From: Ulf Hermann
Date: Thu, 20 Apr 2017 16:08:48 +0200
Subject: [PATCH] Don't look for kernel version if not running on linux
We don't want to use it, even if it exists.
Signed-off-by: Ulf Hermann
Signed-off-by: Mark Wielaard
---
libdwfl/
You can get uname() on Windows through gnulib, but at the cost at
linking to additional windows DLLs. It calls gethostname and for that
we need to link against ws2_32.dll. That's an unreasonable dependency
for getting something we cannot use anyway. I suggest we just set
errno to ENOTSUP then.
I
On 04/27/2017 08:02 PM, Mark Wielaard wrote:
> On Thu, Apr 20, 2017 at 04:08:48PM +0200, Ulf Hermann wrote:
>> We don't want to use it, even if it exists.
>
> I am not sure this is really the right place to patch.
> The value is retrieved through uname () which is POSIX and so should
> be availabl
On Thu, Apr 20, 2017 at 04:08:48PM +0200, Ulf Hermann wrote:
> We don't want to use it, even if it exists.
I am not sure this is really the right place to patch.
The value is retrieved through uname () which is POSIX and so should
be available even on non-GNU/Linux systems. When kernel_release ()
We don't want to use it, even if it exists.
Signed-off-by: Ulf Hermann
---
libdwfl/ChangeLog | 5 +
libdwfl/linux-kernel-modules.c | 4
2 files changed, 9 insertions(+)
diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog
index de73d79..80346d5 100644
--- a/libdwfl/ChangeLog