File: fix-unresolved-reference-size.patch

package info (click to toggle)
python-crypto 2.6-4%2Bdeb7u3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,752 kB
  • sloc: ansic: 12,455; python: 10,474; makefile: 42; sh: 5
file content (23 lines) | stat: -rw-r--r-- 598 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: fix build issues if built without optimization.
 If built with -O0 the call to size won't be inlined and thus _fastmath cannot
 be loaded due to an unresolved symbol.
Author: Sebastian Ramacher <s.ramacher@gmx.at>
Last-Update: 2011-11-16
Forwarded: http://lists.dlitz.net/pipermail/pycrypto/2011q4/000514.html

diff --git a/src/_fastmath.c b/src/_fastmath.c
index eff3e29..5882f3d 100644
--- a/src/_fastmath.c
+++ b/src/_fastmath.c
@@ -998,7 +998,7 @@ cleanup:
 
 
 
-INLINE size_t size (mpz_t n)
+static INLINE size_t size (mpz_t n)
 {
 	return mpz_sizeinbase (n, 2);
 }
-- 
1.7.7.2