Last change
on this file since 19232 was 14938, checked in by tbretz, 12 years ago |
Added a workaround to let webDid find its data.
|
File size:
431 bytes
|
Line | |
---|
1 | #include <string.h>
|
---|
2 | #include <unistd.h>
|
---|
3 |
|
---|
4 | int local_main(int argc, char **argv);
|
---|
5 |
|
---|
6 | int main(int argc, char **argv)
|
---|
7 | {
|
---|
8 | if (argc) {}
|
---|
9 |
|
---|
10 | char currwd[1024];
|
---|
11 | strcpy(currwd, argv[0]);
|
---|
12 |
|
---|
13 | char *ptr = strrchr(currwd,'/');
|
---|
14 | if (ptr)
|
---|
15 | *ptr = '\0';
|
---|
16 |
|
---|
17 | strcpy(ptr, "/../dim/WebDID/");
|
---|
18 |
|
---|
19 | char *arg[2] = { currwd, argv[1] };
|
---|
20 | return local_main(2, arg);
|
---|
21 | }
|
---|
22 |
|
---|
23 | #define main local_main
|
---|
24 | #include "dim/src/webDid/webServer.c"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.