Skip to content

Fix incorrect #include <sys/poll.h> - #2517

Open
WhyNotHugo wants to merge 1 commit into
ValveSoftware:masterfrom
WhyNotHugo:poll.h
Open

WhyNotHugo wants to merge 1 commit into
ValveSoftware:masterfrom
WhyNotHugo:poll.h

Conversation

@WhyNotHugo

Copy link
Copy Markdown

Building warns:

In file included from ../src/steamcompmgr.cpp:60:
/usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp]
	1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
	  |  ^~~~~~~

Fix the include to use the correct path.
All other files in this project already use this path.

@matte-schwartz

Copy link
Copy Markdown
Collaborator

I think we could also just drop this include instead as steamcompmgr doesn't use anything from poll.h that I can see. Does it still build for you with the line removed?

Building warns:

	In file included from ../src/steamcompmgr.cpp:60:
	/usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp]
		1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
		  |  ^~~~~~~

This include is unused anyway. Remove it entirely.
All other files in this project already use the correct path.
@WhyNotHugo

Copy link
Copy Markdown
Author

Builds fine without it. PR updated.

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 this pull request may close these issues.

2 participants