forked from pool/mimetic
- Refreshed spec-file via spec-cleaner and manual optimizations. - Added mimetic-gcc11-fix.patch and fixed gcc11 build. OBS-URL: https://build.opensuse.org/request/show/896098 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mimetic?expand=0&rev=5
13 lines
509 B
Diff
13 lines
509 B
Diff
diff -Pdpru mimetic-0.9.8.orig/mimetic/os/mmfile.cxx mimetic-0.9.8/mimetic/os/mmfile.cxx
|
|
--- mimetic-0.9.8.orig/mimetic/os/mmfile.cxx 2014-06-17 12:12:00.000000000 +0400
|
|
+++ mimetic-0.9.8/mimetic/os/mmfile.cxx 2021-05-29 15:54:16.102377999 +0300
|
|
@@ -57,7 +57,7 @@ bool MMFile::open(int mode)
|
|
bool MMFile::map()
|
|
{
|
|
m_beg = (char*) mmap(0, m_st.st_size, PROT_READ, MAP_SHARED,m_fd,0);
|
|
- if(m_beg > 0)
|
|
+ if(m_beg != MAP_FAILED)
|
|
{
|
|
m_end = m_beg + m_st.st_size;
|
|
#if HAVE_MADVISE
|