Bug#400872: elinks: FTBFS on GNU/kFreeBSD

Petr Salinger <[email protected]>
Newsgroups gmane.linux.debian.devel.bugs.general,gmane.comp.web.links
Message-ID <[email protected]>
Package: elinks
Severity: important
Version: 0.11.1-1.2
Tags: patch


Hi,

the current version fails to build on GNU/kFreeBSD.

It have to include <sys/types.h> before using off_t, see bellow.

Thanks in advance

                         Petr


--- src/util/time.h~    2006-11-29 10:50:31.000000000 +0100
+++ src/util/time.h     2006-11-29 10:50:31.000000000 +0100
@@ -8,6 +8,8 @@
  #include <time.h>
  #endif

+#include <sys/types.h>  /* off_t */
+
  typedef long milliseconds_T;
  #define MILLISECONDS_MAX ((milliseconds_T) (LONG_MAX / 1000L))
  #define ms_max(a, b) ((a) < (b) ? (b) : (a))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.