OS X build break
Former-commit-id: 5e6b4ab99e6f2ad29577c8d4cc151284f0c652b4
This commit is contained in:
parent
2a14dcc7d1
commit
e09a2ac94a
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -20,10 +20,10 @@ jobs:
|
||||
runs-on: ubuntu-16.04
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: |
|
||||
- name: make
|
||||
run:
|
||||
sudo apt-get install uuid-dev libcurl4-openssl-dev
|
||||
make
|
||||
run: make
|
||||
|
||||
build-macos-latest:
|
||||
runs-on: macos-latest
|
||||
|
@ -449,9 +449,6 @@ size_t zmalloc_get_smap_bytes_by_field(const char *field, long pid) {
|
||||
return bytes;
|
||||
}
|
||||
#else
|
||||
<<<<<<< HEAD:src/zmalloc.cpp
|
||||
size_t zmalloc_get_smap_bytes_by_field(const char *field, long pid) {
|
||||
=======
|
||||
/* Get sum of the specified field from libproc api call.
|
||||
* As there are per page value basis we need to convert
|
||||
* them accordingly.
|
||||
@ -459,7 +456,7 @@ size_t zmalloc_get_smap_bytes_by_field(const char *field, long pid) {
|
||||
* Note that AnonHugePages is a no-op as THP feature
|
||||
* is not supported in this platform
|
||||
*/
|
||||
size_t zmalloc_get_smap_bytes_by_field(char *field, long pid) {
|
||||
size_t zmalloc_get_smap_bytes_by_field(const char *field, long pid) {
|
||||
#if defined(__APPLE__)
|
||||
struct proc_regioninfo pri;
|
||||
if (proc_pidinfo(pid, PROC_PIDREGIONINFO, 0, &pri, PROC_PIDREGIONINFO_SIZE) ==
|
||||
@ -474,7 +471,6 @@ size_t zmalloc_get_smap_bytes_by_field(char *field, long pid) {
|
||||
}
|
||||
return 0;
|
||||
#endif
|
||||
>>>>>>> redis/6.0:src/zmalloc.c
|
||||
((void) field);
|
||||
((void) pid);
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user