Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 1 | From 72065bb2b5881dc224299f302379391aebdfca3d Mon Sep 17 00:00:00 2001 |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Wed, 21 Nov 2018 13:09:05 +0100 |
Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 4 | Subject: [PATCH 1/2] Add crc32.c to sources list |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 5 | |
| 6 | Otherwise, there is a missing symbol runtime error under musl C library. |
| 7 | |
| 8 | Upstream-Status: Pending |
| 9 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
| 10 | --- |
| 11 | libcomps/src/python/src/CMakeLists.txt | 4 ++-- |
| 12 | libcomps/src/python/src/crc32.c | 2 +- |
| 13 | 2 files changed, 3 insertions(+), 3 deletions(-) |
| 14 | |
| 15 | diff --git a/libcomps/src/python/src/CMakeLists.txt b/libcomps/src/python/src/CMakeLists.txt |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame^] | 16 | index 89b9c91..08cd6b5 100644 |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 17 | --- a/libcomps/src/python/src/CMakeLists.txt |
| 18 | +++ b/libcomps/src/python/src/CMakeLists.txt |
| 19 | @@ -9,13 +9,13 @@ set (pycomps_SRCDIR ${CMAKE_CURRENT_SOURCE_DIR}) |
| 20 | set (pycomps_SRC pycomps.c pycomps_sequence.c |
| 21 | pycomps_envs.c pycomps_categories.c pycomps_groups.c |
| 22 | pycomps_gids.c pycomps_utils.c pycomps_dict.c pycomps_mdict.c |
| 23 | - pycomps_hash.c pycomps_exc.c pycomps_lbw.c) |
| 24 | + pycomps_hash.c pycomps_exc.c pycomps_lbw.c crc32.c) |
| 25 | |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame^] | 26 | set (pycomps_HEADERS pycomps_macros.h pycomps_sequence.h |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 27 | pycomps_envs.h pycomps_categories.h pycomps_groups.h |
| 28 | pycomps_gids.h pycomps_utils.h pycomps_dict.h pycomps_mdict.h |
| 29 | pycomps_hash.h pycomps_exc.h pycomps_lbw.h |
| 30 | - pycomps_types.h) |
| 31 | + pycomps_types.h crc32.h) |
| 32 | |
| 33 | #set(TEST_FILES ../__init__.py __test.py test_merge_comps.py test_libcomps.py |
| 34 | # utest.py) |
| 35 | diff --git a/libcomps/src/python/src/crc32.c b/libcomps/src/python/src/crc32.c |
| 36 | index d8f5e34..f266067 100644 |
| 37 | --- a/libcomps/src/python/src/crc32.c |
| 38 | +++ b/libcomps/src/python/src/crc32.c |
| 39 | @@ -41,7 +41,7 @@ |
| 40 | */ |
| 41 | |
| 42 | #include <sys/param.h> |
| 43 | -#include <sys/systm.h> |
| 44 | +#include <stdint.h> |
| 45 | |
| 46 | static uint32_t crc32_tab[] = { |
| 47 | 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, |
Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 48 | -- |
Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame^] | 49 | 2.25.1 |
Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 50 | |