Skip to content

Commit

Permalink
* Fixes for gcc-4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
cannam committed Apr 22, 2008
1 parent fdb7fd9 commit f73ad62
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ LADSPADIR = /usr/local/lib/ladspa
BINDIR = /usr/local/bin

# To compile with the VeSTige compatibility header:
CXXFLAGS = -Ivestige -Wall
CXXFLAGS = -Ivestige -Wall -fPIC

# To compile with the official VST SDK v2.4r2:
#CXXFLAGS = -I./vstsdk2.4/pluginterfaces/vst2.x -Wall
#CXXFLAGS = -I./vstsdk2.4/pluginterfaces/vst2.x -Wall -fPIC

LDFLAGS =

Expand Down
2 changes: 2 additions & 0 deletions dssi-vst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#include <vector>
#include <string>
#include <iostream>
#include <string.h>
#include <stdlib.h>

// Should be divisible by three
#define MIDI_BUFFER_SIZE 1023
Expand Down
1 change: 1 addition & 0 deletions dssi-vst_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <sys/time.h>
#include <unistd.h>
#include <time.h>
#include <stdlib.h>

#include <lo/lo.h>
#include <lo/lo_lowlevel.h>
Expand Down
1 change: 1 addition & 0 deletions paths.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "paths.h"

#include <iostream>
#include <stdlib.h>

std::vector<std::string>
Paths::getPath(std::string envVar, std::string deflt, std::string defltHomeRelPath)
Expand Down
2 changes: 1 addition & 1 deletion rdwrops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ rdwr_tryWrite(int fd, const void *buf, size_t count, const char *file, int line)

if (w < (ssize_t)count) {
fprintf(stderr, "Failed to complete write on fd %d (have %d, put %d) at %s:%d\n",
fd, count, w, file, line);
fd, (int)count, (int)w, file, line);
throw RemotePluginClosedException();
}

Expand Down
2 changes: 2 additions & 0 deletions remotepluginclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include <unistd.h>
#include <iostream>
#include <errno.h>
#include <stdlib.h>
#include <string.h>

#include "rdwrops.h"

Expand Down
2 changes: 2 additions & 0 deletions remotepluginserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

#include <time.h>
#include <iostream>
#include <stdlib.h>
#include <string.h>

#include "rdwrops.h"

Expand Down
5 changes: 3 additions & 2 deletions remotevstclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <sys/types.h>
#include <sys/wait.h>
#include <errno.h>
#include <stdlib.h>

#include "rdwrops.h"
#include "paths.h"
Expand Down Expand Up @@ -75,7 +76,7 @@ RemoteVSTClient::RemoteVSTClient(std::string dllName, bool showGUI) :
cleanup();
throw((std::string)"Fork failed");
} else if (child == 0) { // child process
if (execlp(fileName.c_str(), fileName.c_str(), argStr, 0)) {
if (execlp(fileName.c_str(), fileName.c_str(), argStr, NULL)) {
perror("Exec failed");
exit(1);
}
Expand Down Expand Up @@ -336,7 +337,7 @@ RemoteVSTClient::queryPlugins(std::vector<PluginRecord> &plugins)
unlink(fifoFile);
throw((std::string)"Fork failed");
} else if (child == 0) { // child process
if (execlp(fileName.c_str(), fileName.c_str(), fifoFile, 0)) {
if (execlp(fileName.c_str(), fileName.c_str(), fifoFile, NULL)) {
perror("Exec failed");
unlink(fifoFile);
exit(1);
Expand Down

0 comments on commit f73ad62

Please sign in to comment.