void-packages/srcpkgs/libphonenumber/patches/32bit.patch

20 lines
648 B
Diff

--- a/tools/cpp/src/cpp-build/generate_geocoding_data.cc 2021-12-13 14:43:42.507659848 +0100
+++ - 2021-12-13 14:45:11.191139520 +0100
@@ -13,6 +13,7 @@
// limitations under the License.
//
// Author: Patrick Mezard
+#define _FILE_OFFSET_BITS 64
#include "cpp-build/generate_geocoding_data.h"
@@ -567,7 +568,7 @@
map<int32, set<string> > country_languages;
vector<DirEntry> entries;
if (!ListDirectory(data_path, &entries)) {
- fprintf(stderr, "failed to read directory entries");
+ fprintf(stderr, "failed to read directory entries\n");
return false;
}
for (vector<DirEntry>::const_iterator it = entries.begin();