Skip to content

src/history.cpp:273:29: error: 'bzero' was not declared in this scope on illumos #5461

@Mno-hime

Description

@Mno-hime

Build of fish 3.0.0 on OpenIndiana 2018.10 (illumos kernel) fails with:

  CXX      obj/history.o
src/history.cpp: In static member function 'static bool history_file_contents_t::read_from_fd(int, void*, size_t)':
src/history.cpp:273:29: error: 'bzero' was not declared in this scope
         bzero(ptr, remaining);
                             ^

#include <strings.h> in src/history.cpp fixed it for me.

illumos bzero(3C) man page: https://illumos.org/man/3c/bzero.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that's not working as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions