Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: use of undeclared identifier 'close' #3330

Closed
yurivict opened this issue Aug 16, 2021 · 2 comments · Fixed by #3345
Closed

error: use of undeclared identifier 'close' #3330

yurivict opened this issue Aug 16, 2021 · 2 comments · Fixed by #3345
Assignees

Comments

@yurivict
Copy link

--- src/CMakeFiles/zm.dir/zm_local_camera.cpp.o ---
/disk-samsung/freebsd-ports/multimedia/zoneminder/work/zoneminder-1.36.5/src/zm_local_camera.cpp:1190:3: error: use of undeclared identifier 'close'
  close(vid_fd);
  ^
/disk-samsung/freebsd-ports/multimedia/zoneminder/work/zoneminder-1.36.5/src/zm_local_camera.cpp:1290:3: error: use of undeclared identifier 'close'
  close(enum_fd);
  ^
/disk-samsung/freebsd-ports/multimedia/zoneminder/work/zoneminder-1.36.5/src/zm_local_camera.cpp:1569:17: warning: format specifies type 'unsigned long long' but the argument has type 'v4l2_std_id' (aka 'unsigned long') [-Wformat]
              , input.std );
                ^~~~~~~~~
/disk-samsung/freebsd-ports/multimedia/zoneminder/work/zoneminder-1.36.5/src/zm_local_camera.cpp:1574:30: warning: format specifies type 'unsigned long long' but the argument has type 'v4l2_std_id' (aka 'unsigned long') [-Wformat]
              , input.index, input.std);
                             ^~~~~~~~~
/disk-samsung/freebsd-ports/multimedia/zoneminder/work/zoneminder-1.36.5/src/zm_local_camera.cpp:1788:5: error: use of undeclared identifier 'close'
    close(vid_fd);
    ^
--- onvif/proxy/CMakeFiles/zmonvifproxy.dir/all ---

Version: 1.36.5
OS: FreeBSD 13

@welcome
Copy link

welcome bot commented Aug 16, 2021

Thanks for opening your first issue here! Just a reminder, this forum is for Bug Reports only. Be sure to follow the issue template!

@connortechnology
Copy link
Member

connortechnology commented Sep 7, 2021

@Carbenium do you think this would be solved by using std::close instead of close?
Or perhaps we just need to include #include <unistd.h>

@Carbenium Carbenium self-assigned this Sep 7, 2021
Carbenium added a commit to Carbenium/zoneminder that referenced this issue Sep 7, 2021
Carbenium added a commit to Carbenium/zoneminder that referenced this issue Sep 7, 2021
Carbenium added a commit to Carbenium/zoneminder that referenced this issue Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants