*** pgsql/src/bin/psql/mainloop.c 2005/10/15 02:49:40 1.68 --- pgsql/src/bin/psql/mainloop.c 2009/11/10 23:12:44 1.68.2.1 *************** *** 3,9 **** * * Copyright (c) 2000-2005, PostgreSQL Global Development Group * ! * $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.67 2005/02/22 04:40:55 momjian Exp $ */ #include "postgres_fe.h" #include "mainloop.h" --- 3,9 ---- * * Copyright (c) 2000-2005, PostgreSQL Global Development Group * ! * $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.68 2005/10/15 02:49:40 momjian Exp $ */ #include "postgres_fe.h" #include "mainloop.h" *************** MainLoop(FILE *source) *** 342,344 **** --- 342,354 ---- return successResult; } /* MainLoop() */ + + + /* + * psqlscan.c is #include'd here instead of being compiled on its own. + * This is because we need postgres_fe.h to be read before any system + * include files, else things tend to break on platforms that have + * multiple infrastructures for stdio.h and so on. flex is absolutely + * uncooperative about that, so we can't compile psqlscan.c on its own. + */ + #include "psqlscan.c"