Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 764238 Details for
Bug 832303
x11-misc/slim-1.3.6-r5 fails to compile: slimlock.cpp:77:17: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix the string literal problem
slim-1.3.6-string-literal.patch (text/plain), 986 bytes, created by
Robert Pearce
on 2022-02-02 17:51:38 UTC
(
hide
)
Description:
Patch to fix the string literal problem
Filename:
MIME Type:
Creator:
Robert Pearce
Created:
2022-02-02 17:51:38 UTC
Size:
986 bytes
patch
obsolete
>Index: slimlock.cpp >=================================================================== >--- slim-1.3.6/slimlock.cpp (revision 5) >+++ slim-svn-r6/slimlock.cpp (revision 6) >@@ -74,9 +74,9 @@ > > int main(int argc, char **argv) { > if((argc == 2) && !strcmp("-v", argv[1])) >- die(APPNAME"-"VERSION", © 2010-2012 Joel Burget\n"); >+ die ( APPNAME "-" VERSION ", © 2010-2012 Joel Burget\n" ); > else if(argc != 1) >- die("usage: "APPNAME" [-v]\n"); >+ die ( "usage: " APPNAME " [-v]\n" ); > > void (*prev_fn)(int); > >@@ -92,9 +92,9 @@ > > // try /run/lock first, since i believe it's preferred > if (!stat("/run/lock", &statbuf)) >- lock_file = open("/run/lock/"APPNAME".lock", O_CREAT | O_RDWR, 0666); >+ lock_file = open ( "/run/lock/" APPNAME ".lock", O_CREAT | O_RDWR, 0666); > else >- lock_file = open("/var/lock/"APPNAME".lock", O_CREAT | O_RDWR, 0666); >+ lock_file = open ( "/var/lock/" APPNAME ".lock", O_CREAT | O_RDWR, 0666); > > int rc = flock(lock_file, LOCK_EX | LOCK_NB); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 832303
:
763873
| 764238