1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
X-Comment: see https://dep.debian.net/deps/dep3/ for format
Description: deal with the errno integer variable
Without this patch, linking the auto-str binary to substdio.a, error.a and
str.a fails:
gcc -s -o auto-str auto-str.o substdio.a error.a str.a
gives
/usr/bin/ld: errno: TLS definition in /lib/x86_64-linux-gnu/libc.so.6
section .tbss mismatches non-TLS reference in substdio.a(substdo.o)
/lib/x86_64-linux-gnu/libc.so.6: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Downloaded from http://djbware.csi.hu/patches/publicfile-0.52.errno.patch
as linked to from http://qmail.mirrors.hebergeur.be/top.html#patches
and http://qmail.org/
Author: mw@csi.hu
Last-Update: 2002-01-14
diff -u publicfile-0.52.old/error.h publicfile-0.52/error.h
--- publicfile-0.52.old/error.h 1999-11-09 01:23:46.000000000 -0600
+++ publicfile-0.52/error.h 2003-01-14 11:59:15.000000000 -0600
@@ -1,7 +1,7 @@
#ifndef ERROR_H
#define ERROR_H
-extern int errno;
+#include <errno.h>
extern int error_intr;
extern int error_nomem;
diff -u publicfile-0.52.old/leapsecs_read.c publicfile-0.52/leapsecs_read.c
--- publicfile-0.52.old/leapsecs_read.c 1999-11-09 01:23:46.000000000 -0600
+++ publicfile-0.52/leapsecs_read.c 2003-01-14 11:59:41.000000000 -0600
@@ -2,7 +2,6 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
-extern int errno;
#include "tai.h"
#include "leapsecs.h"
|