The answer is both yes and no. Assuming you are building a C++ tool in XCode you can include aaio in your project by adding the aaio.h and aaio2.c file to your project and change #include <termio.h> to #include <sys/ioctl.h> in aaio2.c. This should make your code compile. However the "terminal" in which XCode runs its C++ tool targets whe you run the project from within XCode is not a compliant terminal and it is therefor not possible to change the mode of the "terminal".
To solve that you must build your project in XCode but run it from a Terminal.app session (or an xterm if you use X11). You can locate your binary in /PATH_TO_YOUR_PROJECT/build/NAME_OF_EXECUTABLE.
Hope this helps
so, I changed the header call in aaio2.c, but he mentions adding aaio2.c to my project. Does this mean just moving it to that directory, or do I have to actually call it in my code? After just changing that line in aaio2.c I get the same conclusion I did before.
getting close, I think.