Include <errno.h> in waylandclipboard.cpp
ClosedPublic

Authored by tcberner on Sep 16 2016, 7:31 AM.

Details

Summary

errno.h needs to be includes, as errno, EAGAIN and EWOULDBLOCK are used.

Without:

  • helpers/xclipboardsync/CMakeFiles/org_kde_kwin_xclipboard_syncer.dir/all --- /wrkdirs/usr/ports/x11-wm/plasma5-kwin/work/kwin-5.7.95/helpers/xclipboardsync/waylandclipboard.cpp:110:25: error: use of undeclared identifier 'errno' if (n == -1 && (errno == EAGAIN || errno == EWOULDBLOCK) && ++retryCount < 1000) { ^ /wrkdirs/usr/ports/x11-wm/plasma5-kwin/work/kwin-5.7.95/helpers/xclipboardsync/waylandclipboard.cpp:110:34: error: use of undeclared identifier 'EAGAIN' if (n == -1 && (errno == EAGAIN || errno == EWOULDBLOCK) && ++retryCount < 1000) { ^ /wrkdirs/usr/ports/x11-wm/plasma5-kwin/work/kwin-5.7.95/helpers/xclipboardsync/waylandclipboard.cpp:110:44: error: use of undeclared identifier 'errno' if (n == -1 && (errno == EAGAIN || errno == EWOULDBLOCK) && ++retryCount < 1000) { ^ /wrkdirs/usr/ports/x11-wm/plasma5-kwin/work/kwin-5.7.95/helpers/xclipboardsync/waylandclipboard.cpp:110:53: error: use of undeclared identifier 'EWOULDBLOCK' if (n == -1 && (errno == EAGAIN || errno == EWOULDBLOCK) && ++retryCount < 1000) { ^ 4 errors generated.
  • [helpers/xclipboardsync/CMakeFiles/org_kde_kwin_xclipboard_syncer.dir/waylandclipboard.cpp.o] Error code 1

Diff Detail

Repository
R108 KWin
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
tcberner updated this revision to Diff 6771.Sep 16 2016, 7:31 AM
tcberner retitled this revision from to Include <errno.h> in waylandclipboard.cpp.
tcberner updated this object.
tcberner edited the test plan for this revision. (Show Details)
tcberner added a reviewer: graesslin.
Restricted Application added a project: KWin. · View Herald TranscriptSep 16 2016, 7:31 AM
Restricted Application added a subscriber: kwin. · View Herald Transcript
graesslin accepted this revision.Sep 16 2016, 7:38 AM
graesslin edited edge metadata.

Plasma/5.8 branch please

This revision is now accepted and ready to land.Sep 16 2016, 7:38 AM
tcberner closed this revision.Sep 16 2016, 8:05 AM